Re: [igraph] question re: sample_traits_callaway()
Hello Jeff, All of igraph's source code is available at https://github.com/igraph/ . There is a link at the top of https://igraph.org/ Contributions of new functionality or enhancements are very welcome, but be warned that doing so is not a trivial undertaking. If you'd like to work on this, we are happy to give guidance. Probably the best place to discuss it is the newly launched forum: https://igraph.discourse.group/ Best regards, Szabolcs On Wed, 29 Jan 2020 at 18:26, Jeff Hanes wrote: > Tamas, > > Thank you for the response: I suspected that might be the case. > > If I want to customize the graph generator, how do I get access to the > underlying C code? > > thanks, > Jeff > > > Date: Mon, 27 Jan 2020 23:08:00 +0100 > From: Tamas Nepusz > To: Help for igraph users > Subject: Re: [igraph] question re: sample_traits_callaway() > Message-ID: > mpaoydbjukqzu+awy_ap182rq...@mail.gmail.com> > Content-Type: text/plain; charset="utf-8" > > > > > > > Is the type stored anywhere that I am not thinking of? > > > Judging from the source code of the graph generator in the C layer, I'm > afraid that the vertex types are discarded after the graph is generated, so > you won't be able to retrieve it from the generated graph. > > Best regards, > T. > > ___ > igraph-help mailing list > igraph-help@nongnu.org > https://lists.nongnu.org/mailman/listinfo/igraph-help > ___ igraph-help mailing list igraph-help@nongnu.org https://lists.nongnu.org/mailman/listinfo/igraph-help
Re: [igraph] question re: sample_traits_callaway()
Tamas, Thank you for the response: I suspected that might be the case. If I want to customize the graph generator, how do I get access to the underlying C code? thanks, Jeff Date: Mon, 27 Jan 2020 23:08:00 +0100 From: Tamas Nepusz To: Help for igraph users Subject: Re: [igraph] question re: sample_traits_callaway() Message-ID: Content-Type: text/plain; charset="utf-8" > > > Is the type stored anywhere that I am not thinking of? > Judging from the source code of the graph generator in the C layer, I'm afraid that the vertex types are discarded after the graph is generated, so you won't be able to retrieve it from the generated graph. Best regards, T. ___ igraph-help mailing list igraph-help@nongnu.org https://lists.nongnu.org/mailman/listinfo/igraph-help
Re: [igraph] question re: sample_traits_callaway()
> > > Is the type stored anywhere that I am not thinking of? > Judging from the source code of the graph generator in the C layer, I'm afraid that the vertex types are discarded after the graph is generated, so you won't be able to retrieve it from the generated graph. Best regards, T. ___ igraph-help mailing list igraph-help@nongnu.org https://lists.nongnu.org/mailman/listinfo/igraph-help
[igraph] question re: sample_traits_callaway()
I am using sample_traits_callaway() to create a graph with several types of vertices. After the graph is created, I want to use the vertex types to perform operations on the graph. However, I have not been able to access the type attribute. I have tried: vertex_graph( g ) ... which produces list() V(g)$type ... which produces NULL Is the type stored anywhere that I am not thinking of? Thank you! ___ igraph-help mailing list igraph-help@nongnu.org https://lists.nongnu.org/mailman/listinfo/igraph-help