data-structures

Graph

Class

Members

edges

Map<string, E>

directed

boolean

sort

any
@paramcompareFn(edgeA: E, edgeB: E) => number
@returnsany
@parameE[]
@returnsE[]
@paramvV[]
@returnsV[]
@paramvV[]
@returnsV[]
@paramvstring | V
@returnsV
@paramargs[u: string | V, v: string | V] | [e: string | E]
@returnsE
@parameE[]
@returnsE[]
@paramvstring | V
@returnsE[]

[Symbol.iterator]

IterableIterator<E>
@returnsIterableIterator<E>

create

Graph<Vertex, Edge<Vertex>>
@complexityO(n)
@paramedges{ [key: string]: string[]; }
@returnsGraph<Vertex, Edge<Vertex>>