See: Description
| Interface | Description |
|---|---|
| DirectedGraph<V,E> |
A tagging interface for implementations of
Graph
that accept only directed edges. |
| Forest<V,E> |
An interface for a graph which consists of a collection of rooted
directed acyclic graphs.
|
| Graph<V,E> |
A graph consisting of a set of vertices of type
V
set and a set of edges of type E. |
| Hypergraph<V,E> |
A hypergraph, consisting of a set of vertices of type
V
and a set of hyperedges of type E which connect the vertices. |
| KPartiteGraph<V,E> |
An interface for graphs whose vertices are each members of one of 2 or more
disjoint sets (partitions), and whose edges connect only vertices in distinct
partitions.
|
| MultiGraph<V,E> |
A tagging interface which indicates that the implementing graph accepts
parallel edges.
|
| Tree<V,E> |
A subtype of
Graph which is a (directed, rooted) tree. |
| UndirectedGraph<V,E> |
A tagging interface for extensions of
Graph that
accept only undirected edges. |
| Class | Description |
|---|---|
| GraphDecorator<V,E> |
An implementation of
Graph that delegates its method calls to a
constructor-specified Graph instance. |
| ObservableGraph<V,E> |
A decorator class for graphs which generates events
|
Interfaces for the JUNG graph types, and some representative implementations.
A graph consists of a set of vertices set and a set of edges which connect the
vertices. The base interface is Hypergraph, which defines the most
general type of graph; other interfaces (Graph, DirectedGraph, etc.)
define more restrictive graph types.
Vertex and edge types are specified at compile type using Java 1.5 generics.
Types of graphs which are supported include (but are not limited to)
Comparator
Notes:
{add,remove}{Edge,Vertex}, or
in the constructor.
GraphDecorator; these are useful
if you want to create a graph implementation that uses another implementation to do the work,
and adds some extra behavior. (One example: ObservableGraph, which notifies
registered listeners when graph mutations occur.)
Copyright © 2016. All rights reserved.