public final class GraphTests extends Object
| Modifier and Type | Method and Description |
|---|---|
static <V,E> boolean |
isBipartite(Graph<V,E> g)
Test whether a graph is bipartite.
|
static <V,E> boolean |
isComplete(Graph<V,E> g)
Test whether a graph is complete.
|
static <V,E> boolean |
isConnected(Graph<V,E> g)
Test whether a graph is connected.
|
static <V,E> boolean |
isEmpty(Graph<V,E> g)
Test whether a graph is empty.
|
static <V,E> boolean |
isTree(Graph<V,E> g)
Test whether a graph is a tree.
|
public static <V,E> boolean isEmpty(Graph<V,E> g)
V - the graph vertex typeE - the graph edge typeg - the input graphpublic static <V,E> boolean isComplete(Graph<V,E> g)
V - the graph vertex typeE - the graph edge typeg - the input graphpublic static <V,E> boolean isConnected(Graph<V,E> g)
V - the graph vertex typeE - the graph edge typeg - the input graphpublic static <V,E> boolean isTree(Graph<V,E> g)
V - the graph vertex typeE - the graph edge typeg - the input graphpublic static <V,E> boolean isBipartite(Graph<V,E> g)
V - the graph vertex typeE - the graph edge typeg - the input graphCopyright © 2016. All rights reserved.