code: public static boolean createGraph(Connection connection,
                                        String tableName,
                                        String spatialFieldName,
                                        double tolerance) throws SQLException {
          // By default we do not orient by slope.
          return createGraph(connection, tableName, spatialFieldName, tolerance, false);
      }
docs: Create the nodes and edges tables from the input table containing
  LINESTRINGs in the given column and using the given
  tolerance.
  <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/>
  If the input table has name 'input', then the output tables are named
  'input_nodes' and 'input_edges'.
  
  @param connection       Connection
  @param tableName        Input table
  @param spatialFieldName Name of column containing LINESTRINGs
  @param tolerance        Tolerance
  @return true if both output tables were created
  @throws SQLException