Package graph

Klasse VertexWeightMarking


public class VertexWeightMarking extends VertexMarking
Represents a weight marking associated with a vertex in a graph. Extends VertexMarking.
  • Feldübersicht

    Felder
    Modifizierer und Typ
    Feld
    Beschreibung
    private int
     
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
    VertexWeightMarking(int weight)
    Constructs a vertex weight marking with the specified weight.
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    int
    Retrieves the weight associated with this vertex weight marking.
    void
    setWeight(int weight)
    Sets the weight associated with this vertex weight marking.

    Von Klasse geerbte Methoden java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Felddetails

    • weight

      private int weight
  • Konstruktordetails

    • VertexWeightMarking

      public VertexWeightMarking(int weight)
      Constructs a vertex weight marking with the specified weight.
      Parameter:
      weight - The weight value associated with the vertex.
  • Methodendetails

    • getWeight

      public int getWeight()
      Retrieves the weight associated with this vertex weight marking.
      Gibt zurück:
      The weight of the vertex marking.
    • setWeight

      public void setWeight(int weight)
      Sets the weight associated with this vertex weight marking.
      Parameter:
      weight - The new weight value to set.