code: public static boolean createGraph(Connection connection,
                                        String inputTable,
                                        String spatialFieldName,
                                        double tolerance,
                                        boolean orientBySlope) throws SQLException {
           return createGraph(connection, inputTable, spatialFieldName, tolerance, orientBySlope, false);
       }
docs: Create the nodes and edges tables from the input table containing
  LINESTRINGs in the given column and using the given
  tolerance, and potentially orienting edges by slope.
  <p/>
  The tolerance value is used specify the side length of a square Envelope
  around each node used to snap together other nodes within the same
  Envelope. Note, however, that edge geometries are left untouched.
  Note also that coordinates within a given tolerance of each
  other are not necessarily snapped together. Only the first and last
  coordinates of a geometry are considered to be potential nodes, and
  only nodes within a given tolerance of each other are snapped
  together. The tolerance works only in metric units.
  <p/>
  The boolean orientBySlope is set to true if edges should be oriented by
  the z-value of their first and last coordinates (decreasing).
  <p/>
  If the input table has name 'input', then the output tables are named
  'input_nodes' and 'input_edges'.
  
  @param connection       Connection
  @param inputTable        Input table
  @param spatialFieldName Name of column containing LINESTRINGs
  @param tolerance        Tolerance
  @param orientBySlope    True if edges should be oriented by the z-value of
  their first and last coordinates (decreasing)
  @return true if both output tables were created
  @throws SQLException