Overview | Package | Class | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jgrapht.ext
Class StringEdgeNameProvider<E>

    java.lang.Object
      org.jgrapht.ext.StringEdgeNameProvider<E>

All Implemented Interfaces:
  EdgeNameProvider<E>

    public class StringEdgeNameProvider<E>

extends java.lang.Object
implements EdgeNameProvider<E>

Generates edge names by invoking `Object.toString()` on them. This assumes that the edge's `Object.toString()` method returns a unique String representation for each edge.

Author:
  Trevor Harmon

Constructor Summary
`StringEdgeNameProvider()`

Method Summary
`java.lang.String` | `getEdgeName(E edge)` Returns the String representation an edge.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### StringEdgeNameProvider

    public StringEdgeNameProvider()

Method Detail

### getEdgeName

    public java.lang.String getEdgeName(E edge)

  Returns the String representation an edge.

  Specified by:
    `getEdgeName` in interface `EdgeNameProvider<E>`
  Parameters:
    `edge` - the edge to be named
  Returns:
    the name of the edge

Overview | Package | Class | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD