protected static KeyedGraph prepareGraph ( Connection connection , String inputTable , String orientation , String weight , Class vertexClass , Class edgeClass ) throws SQLException { GraphFunctionParser parser = new GraphFunctionParser ( ) ; parser . parseWeightAndOrientation ( orientation , weight ) ; return new GraphCreator ( connection , inputTable , parser . getGlobalOrientation ( ) , parser . getEdgeOrientation ( ) , parser . getWeightColumn ( ) , vertexClass , edgeClass ) . prepareGraph ( ) ; }
Return a JGraphT graph from the input edges table .