graphlab.library.algorithms.util
Class LibraryUtils
java.lang.Object
graphlab.library.algorithms.util.LibraryUtils
public class LibraryUtils
- extends java.lang.Object
- See Also:
AlgorithmUtils
Method Summary |
static void |
algorithmStep(Algorithm a,
java.lang.String message)
|
static
|
complement(BaseGraph<VertexType,EdgeType> g1)
|
static
|
edgeInduced(BaseGraph<VertexType,EdgeType> g,
java.util.Collection<EdgeType> S)
|
static
|
falsifyEdgeMarks(BaseGraph<VertexType,EdgeType> g)
|
static
|
falsifyVertexMarks(BaseGraph<VertexType,EdgeType> g)
|
static
|
getVertexMarks(BaseGraph<VertexType,EdgeType> g)
returns all vertex marks in a array |
static
|
induced(BaseGraph<VertexType,EdgeType> g,
java.util.Collection<VertexType> S)
|
static
|
join(BaseGraph<VertexType,EdgeType> g1,
BaseGraph<VertexType,EdgeType> g2)
|
static
|
setVertexMarks(BaseGraph<VertexType,EdgeType> g,
boolean[] verexMarks)
sets all the vertex marks |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LibraryUtils
public LibraryUtils()
falsifyEdgeMarks
public static <VertexType extends BaseVertex,EdgeType extends BaseEdge<VertexType>> boolean falsifyEdgeMarks(BaseGraph<VertexType,EdgeType> g)
falsifyVertexMarks
public static <VertexType extends BaseVertex,EdgeType extends BaseEdge<VertexType>> boolean falsifyVertexMarks(BaseGraph<VertexType,EdgeType> g)
complement
public static <VertexType extends BaseVertex,EdgeType extends BaseEdge<VertexType>> BaseGraph<VertexType,EdgeType> complement(BaseGraph<VertexType,EdgeType> g1)
- See Also:
GraphComplement.complement(graphlab.library.BaseGraph)
edgeInduced
public static <VertexType extends BaseVertex,EdgeType extends BaseEdge<VertexType>> BaseGraph<VertexType,EdgeType> edgeInduced(BaseGraph<VertexType,EdgeType> g,
java.util.Collection<EdgeType> S)
- See Also:
EdgeInduced.edgeInduced(graphlab.library.BaseGraph,java.util.Collection)
induced
public static <VertexType extends BaseVertex,EdgeType extends BaseEdge<VertexType>> BaseGraph<VertexType,EdgeType> induced(BaseGraph<VertexType,EdgeType> g,
java.util.Collection<VertexType> S)
- See Also:
VertexInduced.induced(graphlab.library.BaseGraph,java.util.Collection)
join
public static <VertexType extends BaseVertex,EdgeType extends BaseEdge<VertexType>> BaseGraph<VertexType,EdgeType> join(BaseGraph<VertexType,EdgeType> g1,
BaseGraph<VertexType,EdgeType> g2)
- See Also:
graphlab.library.algorithms.goperators.GraphUnion#join(graphlab.library.BaseGraph,graphlab.library.BaseGraph)
algorithmStep
public static void algorithmStep(Algorithm a,
java.lang.String message)
- See Also:
EventUtils.algorithmStep(graphlab.library.algorithms.Algorithm,String)
getVertexMarks
public static <VertexType extends BaseVertex,EdgeType extends BaseEdge<VertexType>> boolean[] getVertexMarks(BaseGraph<VertexType,EdgeType> g)
- returns all vertex marks in a array
setVertexMarks
public static <VertexType extends BaseVertex,EdgeType extends BaseEdge<VertexType>> void setVertexMarks(BaseGraph<VertexType,EdgeType> g,
boolean[] verexMarks)
- sets all the vertex marks