[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [igraph] uploading a bipartite graph from a csv file
From: |
Tamas Nepusz |
Subject: |
Re: [igraph] uploading a bipartite graph from a csv file |
Date: |
Wed, 20 May 2015 11:59:52 +0200 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
> Is uploading a bipartite graph from a .csv value file any different from
> any other graph? If so, how would one specify the partitions? Say the
> source is part1 and target is part2?
Bipartite graphs in igraph are treated just like any other graph; the only
difference is that you should have a vertex attribute named "type" which
contains TRUE for one of the vertex groups and FALSE for the other. If you are
loading a graph from a CSV file, you can add this vertex attribute after
loading.
T.