Package | Description |
---|---|
org.mathIT.graphs |
Provides classes representing mathematical graphs and its vertices.
|
org.mathIT.gui |
This package provides classes to enable graphical user interfaces (GUI).
|
Modifier and Type | Class and Description |
---|---|
class |
SocialNetwork
This class represents a social network as a |
class |
WeightedGraph<V extends Vertible<V>>
This class represents a weighted directed graph as an array list of vertices.
|
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 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.
|
Graph<V> |
Graph.subgraph(Set<V> vertices)
Returns the subgraph given by the specified set of vertices of this graph.
|
Graph<V> |
Graph.subgraph(V[] vertices)
Returns the subgraph given by the specified array of vertices of this graph.
|
Modifier and Type | Method and Description |
---|---|
ArrayList<Graph<V>> |
Graph.getComponents(V x)
Returns a list of the strongly connected components of this graph which are
reachable from vertex x.
|
Modifier and Type | Field and Description |
---|---|
protected Graph<V> |
GraphViewer.invokerGraph
The graph of the mathIT class
Graph that is invoked
to be copied to the format compatible with this viewer. |
Modifier and Type | Method and Description |
---|---|
static <T extends Vertible<T>,K> |
GraphViewer.visualize(Graph<T> graph)
This method visualizes a graph.
|
Constructor and Description |
---|
GraphViewer(Graph<V> graph)
Constructs a graph viewer from the specified graph
|