|
From: | Gábor Csárdi |
Subject: | Re: [igraph] saving hrg to disk |
Date: | Wed, 24 Apr 2013 13:07:30 -0400 |
Hi Everyone,I'm trying out igraph in C right now and am wondering if i there is a a function to save a hrg object. I'm fitting the hrg to my graph and would like to save the state afterwards, so i can reuse the hrg later.Here you can see some sample code to (hopefully) clarify what i'm trying to do://load graphFILE *input;igraph_t graph;input=fopen("gn_no.pairs","r");igraph_read_graph_edgelist(&graph, input,0,1);//hrgigraph_hrg_t hrg;igraph_hrg_init(&hrg,igraph_vcount(&graph));printf("number V: %d\n",igraph_vcount(&graph));igraph_hrg_fit(&graph,&hrg,0,0);//save hrg at this point to diskigraph_hrg_destroy(&hrg);igraph_destroy(&graph);Best regards,Bastian---Bastian Entrup · Tel.: +49(0)641 99-29053 · Fax: -29059Justus-Liebig-Universität Gießen · FB 05 · Institut für Germanistik
Arbeitsbereich Angewandte Sprachwissenschaft und Computerlinguistik
Philosophikum I Büro D 410 · Otto-Behaghel-Str. 10 D · 35394 Gießen
Justus Liebig University Giessen
Applied and Computational Linguistics
Otto-Behaghel-Str. 10 D
35394 Giessen, Germany
_______________________________________________
igraph-help mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/igraph-help
[Prev in Thread] | Current Thread | [Next in Thread] |