Skip to content

Commit 71d74fd

Browse files
authored
Update DataFrame.jl
add description
1 parent 76a8158 commit 71d74fd

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/DataFrame.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ import DataFrames.DataFrame
44
DataFrame(gr::T; type = :node) where T <:AbstractMetaGraph
55
66
Construct a DataFrame from a MetaGraph from either its node or edge properties.
7+
`gr` is a MetaGraph.
8+
`type` is a Symbol valued either :node or :edge such that the DataFrame is populated with node or edge
9+
properties stored in `gr`.
710
"""
811
function DataFrame(gr::T; type = :node) where T <:AbstractMetaGraph
912
fl, prps, en, nu = if type == :node

0 commit comments

Comments
 (0)