@@ -6,7 +6,6 @@ Tools for interoperability between DataFrame objects and LightGraphs and MetaGra
66
77```
88julia> using DataFrames
9- julia> using MetaGraphs
109julia> using GraphDataFrameBridge
1110
1211julia> df = DataFrame(Dict("start" => ["a", "b", "a", "d"],
@@ -15,20 +14,20 @@ julia> df = DataFrame(Dict("start" => ["a", "b", "a", "d"],
1514 "extras" => 5:8))
1615
1716# Simple undirected MetaGraph
18- julia> mg = MetaGraph(df, :start, :finish, MetaGraph )
17+ julia> mg = MetaGraph(df, :start, :finish)
1918{5, 4} undirected Int64 metagraph with Float64 weights defined by :weight (default weight 1.0)
2019
2120julia> props(mg, 1)
2221Dict Symbol → Any with 1 entries
2322 :name → "a"
2423
2524# Simple directed MetaDiGraph
26- julia> mdg = MetaDiGraph(df, :start, :finish, MetaDiGraph )
25+ julia> mdg = MetaDiGraph(df, :start, :finish)
2726{5, 4} directed Int64 metagraph with Float64 weights defined by :weight (default weight 1.0)
2827
2928# MetaGraph with `weight` attribute set and
3029# `:extras` values stored as attributes.
31- julia> mgw = MetaGraph(df, :start, :finish, MetaGraph,
30+ julia> mgw = MetaGraph(df, :start, :finish,
3231 weight=:weights,
3332 edge_attributes=:extras)
3433{5, 4} undirected Int64 metagraph with Float64 weights defined by :weight (default weight 1.0)
0 commit comments