class Graphunk::WeightedUndirectedGraph(T)
- Graphunk::WeightedUndirectedGraph(T)
- Reference
- Object
Included Modules
Defined in:
graphunk/classes/graphs/weighted_undirected_graph.crConstructors
- .new(vertices : Array(T) = [] of T, weights : Hash(Tuple(T, T), Int32) = {} of Tuple(T, T) => Int32)
Instance Method Summary
- #add_edge(v, u, w)
- #add_edge(edge : Tuple(T, T), weight)
- #adjust_weight(v, u, w)
- #edge_weight(v, u)
- #edge_weight(edge)
- #minimum_spanning_tree(algorithm = Algorithms::Prim)
- #remove_edge(v, u)
- #remove_edge(edge)
Instance methods inherited from module Graphunk::UndirectedGraphMethods(T)
bipartite?
bipartite?,
chordal?
chordal?,
clique?(vertex_list)
clique?,
comparability?
comparability?,
complete?
complete?,
edge_exists?(v, u)
edge_exists?,
lexicographic_bfs
lexicographic_bfs,
transitive_orientation
transitive_orientation
Instance methods inherited from module Graphunk::Graph(T)
add_vertex(vertex)
add_vertex,
add_vertices(names : Array(T))add_vertices(*names) add_vertices, clone clone, degree(vertex) degree, edge_exists?(edge) edge_exists?, edges edges, edges_on_vertex(vertex) edges_on_vertex, neighbors(vertex) neighbors, remove_vertex(vertex) remove_vertex, vertex_exists?(vertex) vertex_exists?, vertices vertices
Constructor methods inherited from module Graphunk::Graph(T)
new(vertices = [] of T, edges = [] of Tuple(T, T))
new
Instance methods inherited from module Graphunk::WeightedGraph(T)
weights
weights
Instance methods inherited from module Graphunk::Graph(T)
add_vertex(vertex)
add_vertex,
add_vertices(names : Array(T))add_vertices(*names) add_vertices, clone clone, degree(vertex) degree, edge_exists?(edge) edge_exists?, edges edges, edges_on_vertex(vertex) edges_on_vertex, neighbors(vertex) neighbors, remove_vertex(vertex) remove_vertex, vertex_exists?(vertex) vertex_exists?, vertices vertices
Constructor methods inherited from module Graphunk::Graph(T)
new(vertices = [] of T, edges = [] of Tuple(T, T))
new
Constructor Detail
def self.new(vertices : Array(T) = [] of T, weights : Hash(Tuple(T, T), Int32) = {} of Tuple(T, T) => Int32)
#