Hello,

Please, I would like to know if vertex and edge properties of a graph are
taken into account in clustering.motifs.

In my graph, edge properties are some int labels with two possible values
(as shown in the image 
<http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/file/n4025642/3QQF_A.png>
 
).

When I use clustering motifs, it returns 1 motif with 2 nodes and this motif
occurs 5 times in the original graph.

In [144]: motifs, counts, vm = gt.motifs(grafo, 2, return_maps=True)

In [145]: motifs
Out[145]: [<Graph object, undirected, with 2 vertices and 1 edge at
0xba12c6c>]

In [146]: counts
Out[146]: [5]

In [148]: len(vm)
Out[148]: 1

In [149]: len(vm[0])
Out[149]: 5

It seems to me that clustering.motifs does not take into account vertex and
edge properties. Is it true?

Is there any way to generate motifs that take into account the vertex and
edge properties?

In my example, I expected that there would be 2 motifs 
Motif 1:  2 nodes and 1 edge with label 10, which occurs 2 times in the
original graph.
Motif 2:  2 nodes and 1 edge with label 13, which occurs 3 times in the
original graph.

Thank you for any help you can provide,

Sabrina



--
View this message in context: 
http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/How-vertex-and-edge-properties-are-taken-into-account-in-clustering-motifs-tp4025642.html
Sent from the Main discussion list for the graph-tool project mailing list 
archive at Nabble.com.
_______________________________________________
graph-tool mailing list
[email protected]
http://lists.skewed.de/mailman/listinfo/graph-tool

Reply via email to