mxICostFunction cf = mxDistanceCostFunction(); Object[] v = graph.getChildVertices(graph.getDefaultParent()); Object[] e = graph.getChildEdges(graph.getDefaultParent()); mxGraphAnalysis mga = mxGraphAnalysis.getInstance(); Object[] path = mga.getShortestPath(graph, from, to, cf, v.length, true); mga.getMinimumSpanningTree(graph, v, cf, true)) mga.getMinimumSpanningTree(graph, v, e, cf)) boolean connected = uf.differ(vertex1, vertex2).
@see mxICostFunction
| |