Package graph
Klasse Vertex
java.lang.Object
graph.Vertex
- Bekannte direkte Unterklassen:
MarkedVertex
Represents a vertex in a graph.
This class serves as a base abstraction for vertices in various types of graphs.
-
Feldübersicht
-
Konstruktorübersicht
-
Methodenübersicht
-
Felddetails
-
name
-
-
Konstruktordetails
-
Vertex
public Vertex()Constructs a vertex with an empty name. -
Vertex
Constructs a vertex with a specified name.- Parameter:
s
- The name of the vertex.
-
-
Methodendetails
-
getName
Retrieves the name of the vertex.- Gibt zurück:
- The name of the vertex.
-
getScreenVertex
Abstract method to retrieve the visualization representation of the vertex. Concrete subclasses will provide specific implementations.- Gibt zurück:
- The visualization representation of the vertex.
-
setName
Sets the name of the vertex.- Parameter:
s
- The new name for the vertex.
-