fslaborg / Graphoscope

A pragmatic approach to network science.
http://fslab.org/Graphoscope/
MIT License
14 stars 6 forks source link

[Feature Request] `FGraph.getNodes` #67

Closed omaus closed 10 months ago

omaus commented 10 months ago

Atm., it is tedious to simply retrieve all nodes from an FGraph. It'd be nice to have a built-in function for this.

Current workaround (provided by @LibraChris):

let getNodes (graph : FGraph<'Nk,'Nd,'Ed) =
    graph
    |> Seq.map (
    fun kvp ->
            let nodeKey = kvp.Key
            let p,nd,s = kvp.Value
            nodeKey, nd
    )
LibraChris commented 10 months ago

Closed by #70