|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.algo.GraphChecker
public final class GraphChecker
Provides methods that check structural properties of a given graph.
Method Summary | |
---|---|
static boolean |
isAcyclic(Graph graph)
Checks whether or not the given graph contains to directed cycle. |
static boolean |
isBiconnected(Graph graph)
Checks whether or not the given graph his biconnected. |
static boolean |
isBipartite(Graph graph)
Checks whether or not the given graph his bipartite. |
static boolean |
isConnected(Graph graph)
Checks whether or not the given graph is connected. |
static boolean |
isCyclic(Graph graph)
Checks whether or not the given graph contains a directed cycle. |
static boolean |
isForest(Graph graph)
Checks whether or not the given graph is a forest, i.e. |
static boolean |
isMultipleEdgeFree(Graph graph)
Checks whether or not the given graph contains multiple edges, i.e. |
static boolean |
isNaryTree(Graph graph,
int n)
Checks whether or not the given graph is a rooted tree where each node has a maximum of n children. |
static boolean |
isPlanar(Graph graph)
Checks whether or not the given graph is planar. |
static boolean |
isRootedTree(Graph graph)
Checks whether or not the given graph is a rooted tree. |
static boolean |
isSelfLoopFree(Graph graph)
Checks whether or not the given graph contains self-loops. |
static boolean |
isSimple(Graph graph)
Checks whether or not the given graph is simple, i.e. |
static boolean |
isStronglyConnected(Graph graph)
Checks whether or not the given graph is strongly connected. |
static boolean |
isTree(Graph graph)
Checks whether or not the given graph is an undirected tree. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static boolean isAcyclic(Graph graph)
public static boolean isCyclic(Graph graph)
public static boolean isPlanar(Graph graph)
public static boolean isConnected(Graph graph)
public static boolean isStronglyConnected(Graph graph)
public static boolean isBiconnected(Graph graph)
public static boolean isBipartite(Graph graph)
public static boolean isNaryTree(Graph graph, int n)
n
children.
public static boolean isRootedTree(Graph graph)
public static boolean isTree(Graph graph)
public static boolean isForest(Graph graph)
public static boolean isSelfLoopFree(Graph graph)
public static boolean isSimple(Graph graph)
e1, e2
where
e1.source() == e2.source() && e1.target() == e2.target().
public static boolean isMultipleEdgeFree(Graph graph)
e1, e2
that
connect the same pairs of nodes in either direction.
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |