Skip to content

How to create a SimpleEdge{T <: Integer} edge list #420

@PaoloZacchia

Description

@PaoloZacchia

Hello!

Thank you for creating this package. I am a Julia user and I was looking for something like this for one of my projects.

Here's my question. I am trying to create a large directed graph starting from and edge list using function SimpleDiGraphFromIterator(). The input I provide is an iterator based on a two-column data frame, think eachrow(edgelist) where edgelist is the data frame in question.

However, I keep getting the error:

Edges must be of type SimpleEdge{T <: Integer}

so I wondered how to structure the edge list in the proper (expected) type. I went through the entire documentation and my sense is that I can only get it starting from an already constructed graph, which would defeat the purpose of using the function SimpleDiGraphFromIterator() in the first place. But maybe I haven't looked carefully enough... any help?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions