Package com.gengoai.graph
Class Vertex
- java.lang.Object
-
- com.gengoai.graph.Vertex
-
- All Implemented Interfaces:
Serializable
public class Vertex extends Object implements Serializable
A generic vertex class which has a label and set of properties. While this class can be used directly in a graph, its main purpose is to act as an intermediary object when reading, writing, and rendering graphs.- Author:
- David B. Bracewell
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Vertex.VertexBuilder
The type Vertex builder.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Vertex.VertexBuilder
builder()
Builder vertex builder.boolean
equals(Object obj)
String
getLabel()
Gets label.Map<String,String>
getProperties()
Gets properties.int
hashCode()
String
toString()
-
-
-
Method Detail
-
builder
public static Vertex.VertexBuilder builder()
Builder vertex builder.- Returns:
- the vertex builder
-
getLabel
public String getLabel()
Gets label.- Returns:
- the label
-
-