|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmapss.dif.graph.Graphs
public class Graphs
Miscellaneous utilities for graphs.
mocgraph.Graph.| Method Summary | |
|---|---|
static java.util.Collection |
addFullyConnectedEdges(mocgraph.Graph graph,
java.util.Collection nodes)
Add edges among the given nodes in the graph such that these nodes are fully connected. |
static java.util.Collection |
cliqueComponents(mocgraph.Graph graph)
Return disjoint components that is clique-decomposed from the graph. |
static mocgraph.Graph |
complementGraph(mocgraph.Graph graph)
Return a complement of the argument graph. |
static java.lang.String |
displayComponents(mocgraph.Graph graph,
java.util.Collection components)
Display a collection of node components in text. |
static boolean |
isConnected(mocgraph.Graph graph)
Return true if the given graph is connected. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.util.Collection addFullyConnectedEdges(mocgraph.Graph graph,
java.util.Collection nodes)
graph - The graph to add the edges.nodes - The nodes to which edges fully connect.
public static java.util.Collection cliqueComponents(mocgraph.Graph graph)
graph - The graph.
public static mocgraph.Graph complementGraph(mocgraph.Graph graph)
graph - The original graph.
public static java.lang.String displayComponents(mocgraph.Graph graph,
java.util.Collection components)
graph - The graph containing the nodes.components - The collection of node components.
public static boolean isConnected(mocgraph.Graph graph)
graph - The graph.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||