Class ToStringLabeller<V>

  • All Implemented Interfaces:
    org.apache.commons.collections4.Transformer<V,​java.lang.String>

    public class ToStringLabeller<V>
    extends java.lang.Object
    implements org.apache.commons.collections4.Transformer<V,​java.lang.String>
    Labels vertices by their toString. This class functions as a drop-in replacement for the default StringLabeller method. This class does not guarantee unique labels; or even consistent ones; as a result, getVertexByLabel will always return NULL.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String transform​(V v)
      Retunrs v.toString()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ToStringLabeller

        public ToStringLabeller()
    • Method Detail

      • transform

        public java.lang.String transform​(V v)
        Retunrs v.toString()
        Specified by:
        transform in interface org.apache.commons.collections4.Transformer<V,​java.lang.String>