public static class opencv_core.CvGraphEdge
extends org.bytedeco.javacpp.Pointer
We represent a graph as a set of vertices. Vertices contain their adjacency lists (more exactly, pointers to first incoming or outcoming edge (or 0 if isolated vertex)). Edges are stored in another set. There is a singly-linked list of incoming/outcoming edges for each vertex.
Each edge consists of:
- Two pointers to the starting and ending vertices (vtx[0] and vtx[1] respectively).
A graph may be oriented or not. In the latter case, edges between vertex i to vertex j are not distinguished during search operations.
- Two pointers to next edges for the starting and ending vertices, where next[0] points to the next edge in the vtx[0] adjacency list and next[1] points to the next edge in the vtx[1] adjacency list.
CvGraphEdge, CvGraphVtx, CvGraphVtx2D, CvGraph
\{| Constructor and Description |
|---|
CvGraphEdge()
Default native constructor.
|
CvGraphEdge(long size)
Native array allocator.
|
CvGraphEdge(org.bytedeco.javacpp.Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
flags() |
opencv_core.CvGraphEdge |
flags(int flags) |
org.bytedeco.javacpp.PointerPointer |
next() |
opencv_core.CvGraphEdge |
next(int i) |
opencv_core.CvGraphEdge |
next(int i,
opencv_core.CvGraphEdge next) |
opencv_core.CvGraphEdge |
position(long position) |
org.bytedeco.javacpp.PointerPointer |
vtx() |
opencv_core.CvGraphVtx |
vtx(int i) |
opencv_core.CvGraphEdge |
vtx(int i,
opencv_core.CvGraphVtx vtx) |
float |
weight() |
opencv_core.CvGraphEdge |
weight(float weight) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, put, realloc, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic CvGraphEdge()
public CvGraphEdge(long size)
Pointer.position(long).public CvGraphEdge(org.bytedeco.javacpp.Pointer p)
Pointer.Pointer(Pointer).public opencv_core.CvGraphEdge position(long position)
position in class org.bytedeco.javacpp.Pointerpublic int flags()
public opencv_core.CvGraphEdge flags(int flags)
public float weight()
public opencv_core.CvGraphEdge weight(float weight)
public opencv_core.CvGraphEdge next(int i)
public opencv_core.CvGraphEdge next(int i, opencv_core.CvGraphEdge next)
@MemberGetter @Cast(value="CvGraphEdge**") public org.bytedeco.javacpp.PointerPointer next()
public opencv_core.CvGraphVtx vtx(int i)
public opencv_core.CvGraphEdge vtx(int i, opencv_core.CvGraphVtx vtx)
@MemberGetter @Cast(value="CvGraphVtx**") public org.bytedeco.javacpp.PointerPointer vtx()
Copyright © 2018. All rights reserved.