Skip to content

Commit 00de09c

Browse files
author
Nick Eubank
committed
typos in readme
1 parent b155095 commit 00de09c

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ Tools for interoperability between DataFrame objects and LightGraphs and MetaGra
66

77
```
88
julia> using DataFrames
9-
julia> using MetaGraphs
109
julia> using GraphDataFrameBridge
1110
1211
julia> 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
2120
julia> props(mg, 1)
2221
Dict 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

Comments
 (0)