Class SimpleNode

  • All Implemented Interfaces:
    Node

    public class SimpleNode
    extends java.lang.Object
    implements Node
    A simple node of a graph with a name.
    Author:
    Matthias Thimm
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String name
      The name of the node
    • Constructor Summary

      Constructors 
      Constructor Description
      SimpleNode​(java.lang.String s)
      Creates a new node with the given name.
    • Method Summary

      Modifier and Type Method Description
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • name

        private java.lang.String name
        The name of the node
    • Constructor Detail

      • SimpleNode

        public SimpleNode​(java.lang.String s)
        Creates a new node with the given name.
        Parameters:
        s - some string.
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object