From ec285549adfec6af0348397eef584b02f88e7838 Mon Sep 17 00:00:00 2001 From: Chelsea Sidrane Date: Thu, 1 Jun 2017 20:09:19 -0700 Subject: [PATCH] Update graph.jl A function to add ExVertex (s) to GenericGraph (s) with less overheard. See pull request #236 for complementary function in common.jl --- src/graph.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/graph.jl b/src/graph.jl index 64469401..fe509d57 100644 --- a/src/graph.jl +++ b/src/graph.jl @@ -118,3 +118,4 @@ end add_edge!{V,E}(g::GenericGraph{V,E}, e::E) = add_edge!(g, source(e, g), target(e, g), e) add_edge!{V,E}(g::GenericGraph{V,E}, u::V, v::V) = add_edge!(g, u, v, make_edge(g, u, v)) +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))