
From:  seema aswani 
Subject:  Re: [igraph] Graph isomorphism 
Date:  Tue, 7 Jul 2015 17:17:39 +0530 
I have two questions.
This is what i am getting as my result.That is the value TRUE or FALSE. I want to extract the name of graph object from this below result. Where ever the value is true i want to print the name of two graph objects which are isomorphic. Like if g1 and g2 are isomorphic then it will return TRUE. And from that i want to print the name of graph object those are g1 and g2.
And also this list of result which is returning true or false i want to access this result of list also outside the for loop.
[1] TRUE [1] FALSE [1] FALSE [1] FALSE [1] FALSE [1] FALSE [1] TRUE [1] FALSE [1] FALSE [1] FALSE [1] FALSE [1] FALSE [1] TRUE [1] FALSE [1] FALSE [1] FALSE [1] FALSE [1] FALSE [1] TRUE [1] FALSE [1] FALSE [1] FALSE [1] FALSE [1] FALSE [1] TRUE
Thanks,
Priyanka Nimavat
I am not sure what you mean? What is the output you want to see? G.
On Tue, Jul 7, 2015 at 12:23 PM, priyanka nimavat
<address@hidden> wrote:
> Hi,
> Thank you so much for response.. its working fine. I am getting the result
> in terms of the list containing true or false. Is there any way to extract
> the name of graph objects which are returning result as True with the name
> of two graph objects which are isomorphic.. ?? And yes how can i access the
> resultant list of r(in my example) in global environment after the end of
> for loop..??
>
> Thank you
>
> On 7 July 2015 at 14:40, priyanka nimavat <address@hidden>
> wrote:
>>
>> Hi all,
>> i am having problem in finding graph isomorphism together of 5 graph
>> objects.As an example my r script is as follow.
>>
>> g1 < graph.ring(10 , directed = FALSE)
>> g2 < graph.ring(5 , directed = FALSE)
>> g3 < graph.ring(7 , directed = FALSE)
>> g4 < graph.ring(6 , directed = FALSE)
>> g5 < graph.ring(8 , directed = FALSE)
>>
>> g < list(g1,g2,g3,g4,g5)
>> g
>>
>>
>> iso = function(g , i ,j)
>> {
>> r < graph.isomorphic(g[i],g[j])
>> return(r)
>> }
>>
>> for(i in 1:5)
>> {
>> for(j in 1:5)
>> {
>> r= iso(g , i , j)
>> print(r)
>> }
>> }
>>
>> It is giving an error that g is not a graph object. Because in function
>> graph.isomorphic it is only accepting graph objects. Is there any way to
>> find isomorphism of multiple graph objects together using for loop.
>> Thanks.
>>
>
>
> _______________________________________________
> igraphhelp mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/igraphhelp
>
_______________________________________________
igraphhelp mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/igraphhelp
[Prev in Thread]  Current Thread  [Next in Thread] 