for( DNVNode tempNode : nodes )
{
List<DNVEdge> edges = new ArrayList<DNVEdge>( tempNode.getFromEdges() );
edges.addAll( tempNode.getToEdges() );
SortByFloatProperty sbfp = new SortByFloatProperty( "time", true );
Collections.sort( edges, sbfp );
tempNode.setProperty( "maxTime", edges.get( 0 ).getProperty( "time" ) );
tempNode.setProperty( "minTime", edges.get( edges.size()-1 ).getProperty( "time" ) );
}
SortByFloatProperty sbfp = new SortByFloatProperty( "numDocuments", true );
Collections.sort( nodes, sbfp );
node = nodes.get( 0 );
int maxNumDocuments = Integer.parseInt( node.getProperty( "numDocuments" ) );
System.out.println( "Max number of docs " + maxNumDocuments );
for( DNVNode tempNode : nodes )