Package | Description |
---|---|
org.mathIT.graphs |
Provides classes representing mathematical graphs and its vertices.
|
Modifier and Type | Method and Description |
---|---|
SimpleVertex |
SimpleVertex.copy()
Creates and returns a copy of this object.
|
Modifier and Type | Method and Description |
---|---|
static Graph<SimpleVertex> |
Graph.create(JTable jTable)
Creates a graph from the adjacency matrix specified by the input table.
|
static WeightedGraph<SimpleVertex> |
WeightedGraph.create(JTable jTable)
Creates a graph from the weight matrix specified by the input table.
|
static Graph<SimpleVertex> |
Graph.createGraph(int[][] adjacency)
Creates a graph from the specified adjacency matrix.
|
static Graph<SimpleVertex> |
Graph.createGraphFromCSVFile()
Creates a graph from a CSV file selected by a file chooser dialog.
|
static WeightedGraph<SimpleVertex> |
WeightedGraph.createWeightedGraph(double[][] weight)
Creates a graph from the specified weight matrix.
|
static WeightedGraph<SimpleVertex> |
WeightedGraph.createWeightedGraphFromCSVFile()
Creates a weighted graph from a CSV file selected by a file chooser dialog.
|
Constructor and Description |
---|
SimpleVertex(int index,
String name,
SimpleVertex[] adjacency)
Creates a vertex with the specified name, index, and adjacency list.
|