LollipopGraph
public struct LollipopGraph : GraphProtocol, _DenseIntegerVertexIdGraph
extension LollipopGraph: IncidenceGraph
extension LollipopGraph: VertexListGraph
An undirected complete subgraph over cliqueVerticesCount with a single path to a final
distinguished vertex.
See also: Lollipop graph on Wikipedia
-
The number of vertices in the fully connected clique.
Declaration
Swift
public let cliqueVerticesCount: Int -
The number of vertices along the singly connected path.
Declaration
Swift
public let pathLength: Int -
Creates a LollipopGraph.
Declaration
Swift
public init(cliqueVerticesCount: Int, pathLength: Int) -
Undocumented
Declaration
Swift
public init(m: Int, n: Int) -
The total number of vertices in
self.Declaration
Swift
public var vertexCount: Int { get } -
The name of a vertex in
self.Declaration
Swift
public typealias VertexId = Int -
Declaration
Swift
public struct EdgeId : Equatable, Hashable
-
Declaration
Swift
public func edges(from vertex: Int) -> [EdgeId] -
-
-
Declaration
Swift
public var vertices: Range<Int> { get }
View on GitHub
LollipopGraph Structure Reference