public Node getSource() { return (Node)super.getSource(); }
public Node getTarget() { return (Node)super.getTarget(); }
public double getWeight() { return super.getWeight(); }
edgeTable.addLabel( edge.toString() ); edgeTable.addValue( "TRACK_ID", "" + trackID.intValue() ); for ( final String feature : edgeFeatures )
public static void addConnectionToGraph(Connection connection, double connectionWeight, SimpleWeightedGraph<ConnectionPoint3D, DefaultWeightedEdge> graphToUpdate) { ConnectionPoint3D source = connection.getSourcePoint(); ConnectionPoint3D target = connection.getTargetPoint(); if (!source.epsilonEquals(target, 1.0e-3)) { graphToUpdate.addVertex(source); graphToUpdate.addVertex(target); DefaultWeightedEdge edge = new DefaultWeightedEdge(); graphToUpdate.addEdge(source, target, edge); graphToUpdate.setEdgeWeight(edge, connectionWeight); } }
edgeTable.addLabel( edge.toString() ); edgeTable.addValue( "TRACK_ID", "" + trackID.intValue() ); for ( final String feature : edgeFeatures )