public class mxGraphStructure
extends java.lang.Object
Constructor | Description |
---|---|
mxGraphStructure() |
Modifier and Type | Method | Description |
---|---|---|
static boolean |
areConnected(mxAnalysisGraph aGraph,
java.lang.Object sourceVertex,
java.lang.Object targetVertex) |
|
static void |
complementaryGraph(mxAnalysisGraph aGraph) |
Makes the complement of aGraph
|
static java.lang.Object |
getConnectingEdge(mxAnalysisGraph aGraph,
java.lang.Object vertexOne,
java.lang.Object vertexTwo) |
|
static java.lang.Object[] |
getCutEdges(mxAnalysisGraph aGraph) |
|
static java.lang.Object[] |
getCutVertices(mxAnalysisGraph aGraph) |
|
static java.lang.Object |
getDirectedLeaf(mxAnalysisGraph aGraph,
java.lang.Object parent) |
|
static java.lang.Object[][] |
getGraphComponents(mxAnalysisGraph aGraph) |
|
static java.lang.Object |
getLowestDegreeVertex(mxAnalysisGraph aGraph,
java.lang.Object[] omitVertex) |
|
static java.lang.Object[] |
getSinkVertices(mxAnalysisGraph aGraph) |
|
static java.lang.Object[] |
getSourceVertices(mxAnalysisGraph aGraph) |
|
static java.lang.Object |
getVertexWithValue(mxAnalysisGraph aGraph,
int value) |
|
static int |
indegree(mxAnalysisGraph aGraph,
java.lang.Object vertex) |
|
static boolean |
isBiconnected(mxAnalysisGraph aGraph) |
|
static boolean |
isConnected(mxAnalysisGraph aGraph) |
|
static boolean |
isCutEdge(mxAnalysisGraph aGraph,
java.lang.Object edge) |
|
static boolean |
isCutVertex(mxAnalysisGraph aGraph,
java.lang.Object vertex) |
|
static boolean |
isCyclicDirected(mxAnalysisGraph aGraph) |
|
static boolean |
isCyclicUndirected(mxAnalysisGraph aGraph) |
|
static boolean |
isSimple(mxAnalysisGraph aGraph) |
|
static boolean |
isTree(mxAnalysisGraph aGraph) |
|
static void |
makeConnected(mxAnalysisGraph aGraph) |
Makes the graph connected
|
static void |
makeSimple(mxAnalysisGraph aGraph) |
|
static void |
makeTreeDirected(mxAnalysisGraph aGraph,
java.lang.Object startVertex) |
Makes a tree graph directed from the source to the leaves
|
static int |
outdegree(mxAnalysisGraph aGraph,
java.lang.Object vertex) |
|
static int |
regularity(mxAnalysisGraph aGraph) |
|
static void |
setDefaultGraphStyle(mxAnalysisGraph aGraph,
boolean resetEdgeValues) |
Sets the style of the graph to that as in GraphEditor
|
public static boolean isConnected(mxAnalysisGraph aGraph)
aGraph
- public static boolean isCyclicUndirected(mxAnalysisGraph aGraph)
aGraph
- parent
- public static boolean isSimple(mxAnalysisGraph aGraph)
aGraph
- public static boolean isTree(mxAnalysisGraph aGraph)
aGraph
- public static java.lang.Object getLowestDegreeVertex(mxAnalysisGraph aGraph, java.lang.Object[] omitVertex)
aGraph
- omitVertex
- vertices in this array will be omitted, set this parameter to null if you don't want this featurepublic static boolean areConnected(mxAnalysisGraph aGraph, java.lang.Object sourceVertex, java.lang.Object targetVertex)
graph
- sourceVertex
- targetVertex
- public static void makeSimple(mxAnalysisGraph aGraph)
graph
- Make a graph simple (remove parallel edges and self loops)public static void makeConnected(mxAnalysisGraph aGraph)
aGraph
- public static java.lang.Object[][] getGraphComponents(mxAnalysisGraph aGraph)
aGraph
- public static void makeTreeDirected(mxAnalysisGraph aGraph, java.lang.Object startVertex) throws StructuralException
aGraph
- startVertex
- - this vertex will be root of the tree (the only source node)StructuralException
- - the graph must be a tree (edge direction doesn't matter)public static java.lang.Object getConnectingEdge(mxAnalysisGraph aGraph, java.lang.Object vertexOne, java.lang.Object vertexTwo)
aGraph
- vertexOne
- vertexTwo
- public static boolean isCyclicDirected(mxAnalysisGraph aGraph)
graph
- public static java.lang.Object getDirectedLeaf(mxAnalysisGraph aGraph, java.lang.Object parent)
graph
- parent
- properties
- public static void complementaryGraph(mxAnalysisGraph aGraph)
aGraph
- public static java.lang.Object getVertexWithValue(mxAnalysisGraph aGraph, int value)
aGraph
- - the graph to searchvalue
- - desired valuepublic static void setDefaultGraphStyle(mxAnalysisGraph aGraph, boolean resetEdgeValues)
aGraph
- resetEdgeValues
- - set to true if you want to re-generate edge weightspublic static int regularity(mxAnalysisGraph aGraph) throws StructuralException
aGraph
- StructuralException
- if the graph is irregularpublic static int indegree(mxAnalysisGraph aGraph, java.lang.Object vertex)
aGraph
- vertex
- public static int outdegree(mxAnalysisGraph aGraph, java.lang.Object vertex)
aGraph
- vertex
- public static boolean isCutVertex(mxAnalysisGraph aGraph, java.lang.Object vertex)
aGraph
- vertex
- public static java.lang.Object[] getCutVertices(mxAnalysisGraph aGraph)
aGraph
- public static boolean isCutEdge(mxAnalysisGraph aGraph, java.lang.Object edge)
aGraph
- edge
- public static java.lang.Object[] getCutEdges(mxAnalysisGraph aGraph)
aGraph
- public static java.lang.Object[] getSourceVertices(mxAnalysisGraph aGraph) throws StructuralException
aGraph
- StructuralException
- the graph must be directedpublic static java.lang.Object[] getSinkVertices(mxAnalysisGraph aGraph) throws StructuralException
aGraph
- StructuralException
- the graph must be directedpublic static boolean isBiconnected(mxAnalysisGraph aGraph)
aGraph
- Copyright (c) 2010-2017 Gaudenz Alder, JGraph Ltd. All rights reserved.