diff options
author | Laurent Ghigonis <laurent@p1sec.com> | 2012-12-12 19:48:34 +0100 |
---|---|---|
committer | Laurent Ghigonis <laurent@p1sec.com> | 2012-12-12 19:49:35 +0100 |
commit | 6a90d2be686d26c7c26a3629cffcdc0789812adf (patch) | |
tree | c55e0b88d47817fb81a9dc34ff2b37c97eb2d716 | |
parent | set default egraph layout to EGRAPH_LAYOUT_FRUCHTERMANREINGOLD (diff) | |
download | glouglou-6a90d2be686d26c7c26a3629cffcdc0789812adf.tar.xz glouglou-6a90d2be686d26c7c26a3629cffcdc0789812adf.zip |
actualy delete edges on conn del
-rw-r--r-- | gg_map/gg_map.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/gg_map/gg_map.c b/gg_map/gg_map.c index 2cfa708..eae6bbc 100644 --- a/gg_map/gg_map.c +++ b/gg_map/gg_map.c @@ -90,8 +90,13 @@ _conn_del(int id) { if (!otherconn) { // XXX lets keep the edges, igraph layouting behaves badly when you have // a vertice without edge ... - //egraph_edge_del(_egraph, e); + egraph_edge_del(_egraph, e); + //if (ggnet_node_is_connected( + } else { + printf("not last one\n"); } + } else { + printf("does not exist !\n"); } } @@ -143,9 +148,9 @@ _cb_packet(struct gg_client *cli, struct gg_packet *pkt) break; case PACKET_DATA: - printf(" type PACKET_DATA\n"); - printf(" data_connid %d\n", pkt->data_connid); - printf(" data_size %d\n", pkt->data_size); + //printf(" type PACKET_DATA\n"); + //printf(" data_connid %d\n", pkt->data_connid); + //printf(" data_size %d\n", pkt->data_size); _conn_data(pkt->data_connid, pkt->data_size); break; |