public class Vertex<T> extends Object
Modifier and Type | Field and Description |
---|---|
float |
centrality |
long |
d
Length of the path.
|
T |
data
The data associated with this node, if any.
|
Set<Vertex<T>> |
neighbors |
long |
sigma
Number of short paths passing through this vertex.
|
Modifier and Type | Method and Description |
---|---|
static <T> ArrayList<Vertex<T>> |
clone(Collection<Vertex<T>> vs)
Clone a collection of vertices, preserving the neighbors.
|
List<Vertex<T>> |
getBranch(Vertex<T> parent)
From this vertex to the next branch vertex or end vertex, both inclusive.
|
int |
getNeighborCount() |
boolean |
isBranching() |
boolean |
isEnding() |
protected void |
reset()
All but neighbors.
|
public float centrality
public long sigma
public long d
public T data
public Vertex(T data)
protected void reset()
public int getNeighborCount()
public static <T> ArrayList<Vertex<T>> clone(Collection<Vertex<T>> vs)
public boolean isBranching()
public boolean isEnding()
Copyright © 2015–2021 Fiji. All rights reserved.