it.unipd.dei.graphx.diameter

DiameterApproximation

object DiameterApproximation

Functions to approximate the diameter of large graphs. The algorithm implemented here is based on the ones described in the papers

The functions provided by this object work on weighted graphs where edge weights are of type Distance (i.e. Double). The data associated with vertices is ignored.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. DiameterApproximation
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  12. implicit def graphToApproximator[VD](graph: Graph[VD, Distance])(implicit arg0: ClassTag[VD]): DiameterApproximator[VD]

    Provides an implicit conversion to a DiameterApproximator object that allows to call the diameterApprox function on a Graph instance

    Provides an implicit conversion to a DiameterApproximator object that allows to call the diameterApprox function on a Graph instance

    VD

    any vertex data is ignored

    graph

    the graph to wrap in a DiameterApproximator

    returns

    a DiameterApproximator wrapping the given graph

  13. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  16. final def notify(): Unit

    Definition Classes
    AnyRef
  17. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  18. def run[VD](graph: Graph[VD, Distance], target: Long, delta: Distance)(implicit arg0: ClassTag[VD]): Distance

    Runs the diameter approximation algorithm.

    Runs the diameter approximation algorithm. The two parameters have the following meaning:

    - target: this is the size of the quotient graph that will be built by the underlying clustering algorithm. It depends on the size of the local memory of the machines. The last step of the algorithm computes the diameter of a graph of size target. Higher values of target can result is shorter running times, whereas smaller ones require less memory.

    - delta: this parameter, representing a distance, controls the number of nodes and edges that can be active in each step of the algorithm. Intuitively, higher values will result in fewer but slower rounds; smaller values will perform more shorter rounds. In any case, this parameter is taken as a hint by the algorithm, that then auto-tunes itself.

    Further details are provided in the companion papers.

    VD

    data associated to vertices is ignored

    graph

    a weighted graph

    target

    the target size for the quotient graph

    delta

    the parameter for the underlying delta-stepping like algorithm

    returns

    an approximation to the diameter of the graph

  19. def run[VD](graph: Graph[VD, Distance], delta: Distance)(implicit arg0: ClassTag[VD]): Distance

    Runs the algorithm with the specified delta parameter.

    Runs the algorithm with the specified delta parameter.

    The algorithm runs with the default value for target, 4000.

    VD

    data associated to vertices is ignored

    graph

    a weighted graph

    delta

    the parameter for the underlying delta-stepping like algorithm

    returns

    an approximation to the diameter of the graph

  20. def run[VD](graph: Graph[VD, Distance], target: Long)(implicit arg0: ClassTag[VD]): Distance

    Runs the clustering algorithm with the specified target quotient size.

    Runs the clustering algorithm with the specified target quotient size.

    In this case delta defaults to the average edge weight.

    VD

    data associated to vertices is ignored

    graph

    a weighted graph

    target

    the target size for the quotient graph

    returns

    an approximation to the diameter of the graph

  21. def run[VD](graph: Graph[VD, Distance])(implicit arg0: ClassTag[VD]): Distance

    Runs the approximation algorithm with default values.

    Runs the approximation algorithm with default values.

    The default values are 4000 for target and the average edge weight for delta.

    VD

    data associated to vertices is ignored

    graph

    a weighted graph

    returns

    an approximation to the diameter of the graph

  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  23. def toString(): String

    Definition Classes
    AnyRef → Any
  24. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped