bcds.phison.io
Class GraphFormatterBare<V,E>

java.lang.Object
  extended by bcds.phison.io.GraphFormatterBare<V,E>
All Implemented Interfaces:
GraphFormatter<V,E>

public class GraphFormatterBare<V,E>
extends java.lang.Object
implements GraphFormatter<V,E>

Implements a "bare" graph formatter, where the node description (and its id) is simply what toString() produces for it. It provides a default implementation of GraphFormatter. No visible attribute is returned for links.

Author:
Juan Segovia S.

Constructor Summary
GraphFormatterBare()
           
 
Method Summary
 java.lang.String getEdgeDesc(E e)
          Returns an empty string.
 java.lang.String getEdgeExtraAttr(E e)
          Returns an empty string.
 java.lang.String getVertexDesc(V v)
          Returns v.toString().
 java.lang.String getVertexExtraAttr(V v)
          Returns an empty string.
 java.lang.String getVertexId(V v)
          Returns v.toString().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphFormatterBare

public GraphFormatterBare()
Method Detail

getVertexId

public java.lang.String getVertexId(V v)
Returns v.toString().

Specified by:
getVertexId in interface GraphFormatter<V,E>

getVertexDesc

public java.lang.String getVertexDesc(V v)
Returns v.toString().

Specified by:
getVertexDesc in interface GraphFormatter<V,E>

getVertexExtraAttr

public java.lang.String getVertexExtraAttr(V v)
Returns an empty string.

Specified by:
getVertexExtraAttr in interface GraphFormatter<V,E>

getEdgeDesc

public java.lang.String getEdgeDesc(E e)
Returns an empty string.

Specified by:
getEdgeDesc in interface GraphFormatter<V,E>

getEdgeExtraAttr

public java.lang.String getEdgeExtraAttr(E e)
Returns an empty string.

Specified by:
getEdgeExtraAttr in interface GraphFormatter<V,E>