Package | Description |
---|---|
edu.uci.ics.jung.algorithms.layout |
Algorithms for assigning 2D coordinates (typically used for graph visualizations)
to vertices.
|
edu.uci.ics.jung.graph |
Interfaces for the JUNG graph types, and some representative implementations.
|
edu.uci.ics.jung.graph.util |
Utility interfaces and classes for the JUNG API.
|
Modifier and Type | Field and Description |
---|---|
protected Forest<V,E> |
TreeLayout.graph |
Constructor and Description |
---|
BalloonLayout(Forest<V,E> g)
Creates an instance based on the input forest.
|
RadialTreeLayout(Forest<V,E> g)
Creates an instance for the specified graph with default X and Y distances.
|
RadialTreeLayout(Forest<V,E> g,
int distx)
Creates an instance for the specified graph and X distance with
default Y distance.
|
RadialTreeLayout(Forest<V,E> g,
int distx,
int disty)
Creates an instance for the specified graph, X distance, and Y distance.
|
TreeLayout(Forest<V,E> g)
Creates an instance for the specified graph with default X and Y distances.
|
TreeLayout(Forest<V,E> g,
int distx)
Creates an instance for the specified graph and X distance with
default Y distance.
|
TreeLayout(Forest<V,E> g,
int distx,
int disty)
Creates an instance for the specified graph, X distance, and Y distance.
|
Modifier and Type | Interface and Description |
---|---|
interface |
Tree<V,E>
A subtype of
Graph which is a (directed, rooted) tree. |
Modifier and Type | Class and Description |
---|---|
class |
DelegateForest<V,E>
An implementation of
Forest that delegates to a specified DirectedGraph
instance. |
class |
DelegateTree<V,E>
An implementation of
Tree that delegates to
a specified instance of DirectedGraph . |
class |
OrderedKAryTree<V,E>
An implementation of
Tree in which each vertex has
<= k children. |
Modifier and Type | Method and Description |
---|---|
static <V,E> void |
TreeUtils.addFromSubTree(Forest<V,E> tree,
Forest<V,E> subTree,
E edge,
V parent,
V root) |
static <V,E> void |
TreeUtils.addFromSubTree(Forest<V,E> tree,
Forest<V,E> subTree,
E edge,
V parent,
V root) |
static <V,E> void |
TreeUtils.addSubTree(Forest<V,E> tree,
Forest<V,E> subTree,
V node,
E connectingEdge)
Connects
subTree to tree by attaching it as a child
of node with edge connectingEdge . |
static <V,E> void |
TreeUtils.addSubTree(Forest<V,E> tree,
Forest<V,E> subTree,
V node,
E connectingEdge)
Connects
subTree to tree by attaching it as a child
of node with edge connectingEdge . |
static <V,E> java.util.List<V> |
TreeUtils.getRoots(Forest<V,E> forest)
Returns the roots of this forest.
|
static <V,E> Tree<V,E> |
TreeUtils.getSubTree(Forest<V,E> forest,
V root)
Returns the subtree of
tree which is rooted at root as a Forest . |
static <V,E> void |
TreeUtils.growSubTree(Forest<V,E> tree,
Forest<V,E> subTree,
V root)
Populates
subtree with the subtree of tree
which is rooted at root . |
static <V,E> void |
TreeUtils.growSubTree(Forest<V,E> tree,
Forest<V,E> subTree,
V root)
Populates
subtree with the subtree of tree
which is rooted at root . |
static <V,E> edu.uci.ics.jung.graph.util.Graphs.SynchronizedForest<V,E> |
Graphs.synchronizedForest(Forest<V,E> forest)
Returns a synchronized Forest backed by the passed Forest.
|
static <V,E> edu.uci.ics.jung.graph.util.Graphs.UnmodifiableForest<V,E> |
Graphs.unmodifiableForest(Forest<V,E> forest)
Returns an unmodifiable
Forest backed by the passed forest. |
Copyright © 2021, 2022 Herve Girod. All Rights Reserved. Documentation and source under the BSD 3-Clause licence