public final class AnnotatedEdge
extends org.jgrapht.graph.DefaultEdge
An edge with a set of string annotations attached to it.
Modifier and Type | Field and Description |
---|---|
private java.util.Set<java.lang.String> |
annotations |
private static long |
serialVersionUID |
Constructor and Description |
---|
AnnotatedEdge()
Creates an empty edge.
|
AnnotatedEdge(java.util.Set<java.lang.String> annotations) |
AnnotatedEdge(java.lang.String... annotations)
Creates an edge with provided annotations.
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<java.lang.String> |
annotations() |
AnnotatedEdge |
clone() |
java.lang.String |
toString() |
private static final long serialVersionUID
private final java.util.Set<java.lang.String> annotations
public AnnotatedEdge()
Creates an empty edge.
public AnnotatedEdge(java.lang.String... annotations)
Creates an edge with provided annotations.
AnnotatedEdge(java.util.Set<java.lang.String> annotations)
public java.util.Set<java.lang.String> annotations()
public java.lang.String toString()
toString
in class org.jgrapht.graph.DefaultEdge
public AnnotatedEdge clone()
clone
in class org.jgrapht.graph.DefaultEdge