|
From: | Tamas Nepusz |
Subject: | Re: [igraph] create graph object |
Date: | Wed, 22 Feb 2017 21:30:29 +0100 |
Dear Igraph develpppers and memebersI am facing some difficulties to remove redundancy from a network using 'simplify' in 'igraph' package. My network is in a table file, firstly my data frame as an object and secondly I run the command line: simplify(g, remove.multiple = TRUE), and have an output error saying created object is not an igraph object . My question is how I can convert a text file to a graph object to avoid this error message ?Here is my input and the output in R :> g <- read.table("data.txt")> gV1 V21 a b2 b a3 d o4 d l> g <- read.table("data.txt")> simplify(g, remove.multiple = TRUE)Error in simplify(g, remove.multiple = TRUE) : Not a graph objectThanks in advanceDD--------------------------Derilus DieunelGraduate StudentDepartment of Environmental SciencesUniversity of Puerto Rico, Río Piedras
_______________________________________________
igraph-help mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/igraph-help
[Prev in Thread] | Current Thread | [Next in Thread] |