Re: [graph-tool] graph-tool Digest, Vol 99, Issue 13
Hi Tiago and all Thank you very much for adding this functionality to graph-tool, I could use this for sure. The only problem is, that since you've sent this email, I'm trying to recompile the newest version of graph-tool and after lots of trouble I managed to get it compiled and working, (without sparsehash unfortunately) (the bigges problems I faced with not enough memory, but never mind), now I have the working graph-tool 2.16 and stil if I try to call the: planar_position = graph_tool.draw.planar_layout(Graph_of_the_knot, pos=None) function it prints: Traceback (most recent call last): File "./knot_representations.py", line 1947, in <module> Crossings_adjacency_matrix = CrossingsAdjacencyMatrix(Nr_of_crossings, Nr_of_ropes, Starting_points, Rope_path_length, Crossings_chirality, Connections_dict_inv, Connections_dict) File "./knot_representations.py", line 1526, in CrossingsAdjacencyMatrix planar_position = graph_tool.draw.planar_layout(Graph_of_the_knot, pos=None) AttributeError: 'module' object has no attribute 'planar_layout' Am I doing something wrong, or I'm not using the right version? I've downloaded graph-tool 2.16 from the site. I would also like to ask something about the sfdp.layout in the draw tool. Can I set the C parameter, *C* : float (optional, default: 0.2) Relative strength of repulsive forces. separately for some vertices? I assume that I can't, because it's not a property map, but I thought I'll ask. Thx Csongor On Mon, Apr 25, 2016 at 9:30 AM, <graph-tool-request@skewed.de> wrote:
Send graph-tool mailing list submissions to graph-tool@skewed.de
To subscribe or unsubscribe via the World Wide Web, visit https://lists.skewed.de/mailman/listinfo/graph-tool or, via email, send a message with subject or body 'help' to graph-tool-request@skewed.de
You can reach the person managing the list at graph-tool-owner@skewed.de
When replying, please edit your Subject line so it is more specific than "Re: Contents of graph-tool digest..."
Today's Topics:
1. Re: First question - Planarity (Tiago de Paula Peixoto) 2. Re: First question - Planarity (Alexandre Hannud Abdo) 3. Re: First question - Planarity (Tiago de Paula Peixoto) 4. Re: How to see the relations between two groups of blocks in a bipartite network? (Andrea Briega)
----------------------------------------------------------------------
Message: 1 Date: Sun, 24 Apr 2016 21:48:43 +0200 From: Tiago de Paula Peixoto <tiago@skewed.de> To: graph-tool@skewed.de Subject: Re: [graph-tool] First question - Planarity Message-ID: <cb99c96b-6dd5-e142-8e14-4efc7f97969b@skewed.de> Content-Type: text/plain; charset="utf-8"
On 20.04.2016 17:01, Tiago de Paula Peixoto wrote:
On 20.04.2016 14:20, Matyas, Csongor wrote:
I will also post my first question, this was the main reason why I registered for this mailing list. The description and examples were usually more than enough for me to use graph_tool, nice job ;) I have a question though. In the "|graph_tool.topology.||is_planar|(/g/, /embedding=True///)" how do I use the embedding information to print my graphs planar. Do I have to do that for myself, or there is a built in function that I didn't find? Do I have to add the edges following the order that they come using the embedding somehow?
Here is one way it can be used to draw the graph:
http://www.boost.org/doc/libs/1_60_0/libs/graph/doc/straight_line_drawing.ht...
However, this function is not yet implemented in graph-tool.
FYI, I have just added this functionality to graph-tool:
https://graph-tool.skewed.de/static/doc/dev/draw.html#graph_tool.draw.planar...
Best, Tiago
-- Tiago de Paula Peixoto <tiago@skewed.de>
On 09.05.2016 21:41, Matyas, Csongor wrote:
Am I doing something wrong, or I'm not using the right version?
I've downloaded graph-tool 2.16 from the site.
This function has been implemented in the current development version only. You have to download it and compile from the git repository. It will be available in the next version (2.17).
I would also like to ask something about the sfdp.layout in the draw tool. Can I set the C parameter,
*C* : float (optional, default: |0.2|) Relative strength of repulsive forces.
separately for some vertices? I assume that I can't, because it's not a property map, but I thought I'll ask.
No, it is a global parameter. Best, Tiago -- Tiago de Paula Peixoto <tiago@skewed.de>
participants (2)
-
Matyas, Csongor -
Tiago de Paula Peixoto