Skip to content

Commit ec28554

Browse files
authored
Update graph.jl
A function to add ExVertex (s) to GenericGraph (s) with less overheard. See pull request JuliaAttic#236 for complementary function in common.jl
1 parent ac93fd1 commit ec28554

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/graph.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,3 +118,4 @@ end
118118

119119
add_edge!{V,E}(g::GenericGraph{V,E}, e::E) = add_edge!(g, source(e, g), target(e, g), e)
120120
add_edge!{V,E}(g::GenericGraph{V,E}, u::V, v::V) = add_edge!(g, u, v, make_edge(g, u, v))
121+
add_edge!{V,E}(g::GenericGraph{V,E}, u::V, v::V, dict::AttributeDict) = add_edge!(g, u, v, make_edge(g, u, v, dict))

0 commit comments

Comments
 (0)