You're probably just passing the wrong type to vertex_pie_fractions, but we
have no way to know that as we're missing the minimal self-contained
example.

.~ยด

On Thu, Oct 5, 2017 at 11:54 AM, isukritgupta <isukritgu...@gmail.com>
wrote:

> Hi, I am trying to generate plots for communities detected by another
> algorithm (outside graph-tool). The communities are overlapping and I
> wanted
> to display something like nodes with multiple colors (like we have for
> SBMs). For this I set a new vertex property and assign nodal memberships to
> it. I assign a matrix which contains one hot vectors for each node's
> community membership. So the matrix has shape n x g where n is the number
> of
> nodes and g is the number of communities. When I use graph_draw like:
>
> graph_draw(g, vertex_shape="pie", vertex_pie_fractions=pv,
> edge_gradient=None, output="lesmis-sbm-marginals.svg")
>
> where pv is the property map, I get: python3:
> ../../../../src/cairo-arc.c:189: _cairo_arc_in_direction: Assertion
> `angle_max >= angle_min' failed.
>
> I want to show overlapping clusters with graph-tool, but the clustering
> hasn't been performed by graph-tool.
>
> Any ideas as to how to go about this?
>
> Thanks!
>
>
>
>
> --
> Sent from: http://main-discussion-list-for-the-graph-tool-project.
> 982480.n3.nabble.com/
> _______________________________________________
> graph-tool mailing list
> graph-tool@skewed.de
> https://lists.skewed.de/mailman/listinfo/graph-tool
>
_______________________________________________
graph-tool mailing list
graph-tool@skewed.de
https://lists.skewed.de/mailman/listinfo/graph-tool

Reply via email to