igraph-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [igraph] [Igraph] : Reading File


From: Gábor Csárdi
Subject: Re: [igraph] [Igraph] : Reading File
Date: Tue, 4 Nov 2014 19:26:59 -0500

Hi,

as the error message says, graphml support is disabled in your build.
To enable it, you'll need to install the libxml2 library, and
recompile igraph, and link to this library.

Gabor

On Tue, Nov 4, 2014 at 7:23 PM, patricia <address@hidden> wrote:
> Hi
>
> I'm trying to read a file in GraphML format using the C ++ programming
> language in Windows Vista. When the code is executed
> igraph_read_graph_graphml << (& net, file, 0); >>>
> it returned the following error message:
>
> "Error at foreign-graphml.c: 1211: GraphML support is disabled,
> Unimplemented function call"
>
> Below is the code, which uses the read function:
>
> void TNetData :: PropagationLabels (string filename, int repetitions)
> {
>      * ToLabel toLabel [repetitions];
>      TSSLAlgorithm * Alg [repetitions];
>      FILE * file;
>      float accuracy, accuracy_average = 0.0;
>      int i;
>      string name;
>
>      name = filename + "xml.";
>
>      file = fopen (name.c_str (), "r");
>
>      igraph_read_graph_graphml (& net, file, 0);
>
>          for (i = 0; i <repetitions; i ++)
>          {
>              toLabel [i] -> RandomSelectionP (& net, 00:10);
>              Alg [i] -> DGL (& net, accuracy);
>
>              accuracy_average accuracy_average = + accuracy;
>          }
>
>      fclose (file);
>
>      printf ("Average Accuracy:% .3f" accuracy_average / (float)
> repetitions);
>
> }
>
> Thank you!
>
>
> _______________________________________________
> igraph-help mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/igraph-help
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]