public class MutableGraph extends Object implements Linkable, MutableLinkSource<MutableGraph>, LinkTarget
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
cluster |
protected boolean |
directed |
protected MutableAttributed<MutableGraph> |
generalAttrs |
protected MutableAttributed<MutableGraph> |
graphAttrs |
protected Label |
label |
protected MutableAttributed<MutableGraph> |
linkAttrs |
protected List<Link> |
links |
protected MutableAttributed<MutableGraph> |
nodeAttrs |
protected Set<MutableNode> |
nodes |
protected boolean |
strict |
protected Set<MutableGraph> |
subgraphs |
| Modifier | Constructor and Description |
|---|---|
|
MutableGraph() |
protected |
MutableGraph(boolean strict,
boolean directed,
boolean cluster,
Label label,
LinkedHashSet<MutableNode> nodes,
LinkedHashSet<MutableGraph> subgraphs,
List<Link> links,
Attributes generalAttrs,
Attributes nodeAttrs,
Attributes linkAttrs,
Attributes graphAttrs) |
| Modifier and Type | Method and Description |
|---|---|
MutableGraph |
add(LinkSource... sources) |
MutableGraph |
add(LinkSource source) |
MutableGraph |
addLink(LinkTarget... targets) |
MutableGraph |
addLink(LinkTarget target) |
MutableGraph |
copy() |
boolean |
equals(Object o) |
MutableAttributed<MutableGraph> |
generalAttrs() |
MutableAttributed<MutableGraph> |
graphAttrs() |
Collection<MutableGraph> |
graphs() |
int |
hashCode() |
boolean |
isCluster() |
boolean |
isDirected() |
boolean |
isStrict() |
Label |
label() |
MutableAttributed<MutableGraph> |
linkAttrs() |
Collection<Link> |
links() |
Link |
linkTo() |
MutableAttributed<MutableGraph> |
nodeAttrs() |
Collection<MutableNode> |
nodes() |
Collection<MutableNode> |
rootNodes() |
MutableGraph |
setCluster(boolean cluster) |
MutableGraph |
setDirected(boolean directed) |
MutableGraph |
setLabel(Label label) |
MutableGraph |
setLabel(String name) |
MutableGraph |
setStrict(boolean strict) |
String |
toString() |
protected boolean strict
protected boolean directed
protected boolean cluster
protected Label label
protected final Set<MutableNode> nodes
protected final Set<MutableGraph> subgraphs
protected final MutableAttributed<MutableGraph> generalAttrs
protected final MutableAttributed<MutableGraph> nodeAttrs
protected final MutableAttributed<MutableGraph> linkAttrs
protected final MutableAttributed<MutableGraph> graphAttrs
public MutableGraph()
protected MutableGraph(boolean strict,
boolean directed,
boolean cluster,
Label label,
LinkedHashSet<MutableNode> nodes,
LinkedHashSet<MutableGraph> subgraphs,
List<Link> links,
Attributes generalAttrs,
Attributes nodeAttrs,
Attributes linkAttrs,
Attributes graphAttrs)
public MutableGraph copy()
public MutableGraph setStrict(boolean strict)
public MutableGraph setDirected(boolean directed)
public MutableGraph setCluster(boolean cluster)
public MutableGraph setLabel(Label label)
public MutableGraph setLabel(String name)
public MutableGraph add(LinkSource... sources)
public MutableGraph add(LinkSource source)
public MutableGraph addLink(LinkTarget... targets)
public MutableGraph addLink(LinkTarget target)
addLink in interface MutableLinkSource<MutableGraph>public Collection<MutableNode> rootNodes()
public Collection<MutableNode> nodes()
public Collection<MutableGraph> graphs()
public Collection<Link> links()
public Link linkTo()
linkTo in interface LinkTargetpublic boolean isStrict()
public boolean isDirected()
public boolean isCluster()
public Label label()
public MutableAttributed<MutableGraph> generalAttrs()
public MutableAttributed<MutableGraph> nodeAttrs()
public MutableAttributed<MutableGraph> linkAttrs()
public MutableAttributed<MutableGraph> graphAttrs()
Copyright © 2015–2017. All rights reserved.