[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [igraph] Extra arguments in make_graph
From: |
Tamas Nepusz |
Subject: |
Re: [igraph] Extra arguments in make_graph |
Date: |
Sun, 2 Oct 2016 18:44:23 +0200 |
Just use make_graph(el, n = vcount(graph), directed=TRUE) instead.
T.
On Thu, Sep 29, 2016 at 4:19 PM, Ragia . <address@hidden> wrote:
> Hi,
>
> I' m trying to use the answer in
>
>
> http://stackoverflow.com/questions/9705035/how-to-copy-a-vertex-with-its-respective-edges-all-in-out-from-a-directed-gra/39772710#39772710
>
>
> trying to create exact copy of a graph
>
> my graph object name is : graph
>
> and it works fine till I reach the contraction phase
>
>
>
> all.vertices <- (1:vcount(graph)) - 1
> es <- E(graph) #[ sampled %--% 1:n ]
> el <- get.edgelist(graph)[as.vector(es)+1]
>
> reachabelGraph1 <- graph(el, vcount(graph), directed = TRUE)
>
> I got he Error "Extra arguments in make_graph"
>
>
> kindly, how can I fix this?
>
>
> thanks in advance
>
> Ragia A. Ibrahim
>
>
>
>
> _______________________________________________
> igraph-help mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/igraph-help
>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [igraph] Extra arguments in make_graph,
Tamas Nepusz <=