public class FlowLayoutGraph
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.util.ArrayList<java.util.ArrayList<java.lang.Integer>> |
adjStruct |
java.util.ArrayList<FlowLayoutEdge> |
edgeList |
int |
m |
int |
n |
int[] |
vC |
java.util.ArrayList<FlowLayoutVertex> |
vertexList |
double[] |
vH |
double[] |
vW |
double[] |
vX |
double[] |
vX1 |
double[] |
vX2 |
double[] |
vY |
double[] |
vY1 |
double[] |
vY2 |
Constructor and Description |
---|
FlowLayoutGraph(int n)
This method is the class constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
buildAdjacencyStructure()
This method builds the adjacency structure of the graph.
|
void |
buildDirectedAdjacencyStructure()
This method builds the directed adjacency structure of the graph.
|
void |
insertNewAcyclicEdge(int v1,
int v2)
This method inserts a new edge to the graph
if the new edge does not create cycles.
|
void |
insertNewEdge(int v1,
int v2)
This method inserts a new edge to the graph.
|
public int n
public int m
public java.util.ArrayList<FlowLayoutVertex> vertexList
public java.util.ArrayList<FlowLayoutEdge> edgeList
public java.util.ArrayList<java.util.ArrayList<java.lang.Integer>> adjStruct
public double[] vX
public double[] vY
public double[] vW
public double[] vH
public double[] vX1
public double[] vX2
public double[] vY1
public double[] vY2
public int[] vC
public FlowLayoutGraph(int n)
n
- the number of vertices of the graph.public void insertNewEdge(int v1, int v2)
v1
- the edge from vertex index.v2
- the edge to vertex index.public void buildAdjacencyStructure()
public void buildDirectedAdjacencyStructure()
public void insertNewAcyclicEdge(int v1, int v2)
v1
- the edge from vertex index.v2
- the edge to vertex index.