Cytoscape doesn't display edge labels and attributes for GraphML file?

703 views
Skip to first unread message

Marlon

unread,
Jan 6, 2018, 3:35:50 AM1/6/18
to cytoscape...@googlegroups.com
Hello, I imported the "tinkerpop-classic.xml", which is graphML file from the TinkerPop gremlin's sample data directory into Cytoscape. However, it doesn't show the labels and attributes on the Edge. How can I show the full labels and attributes in both nodes and edges?

Please see the attached screenshot.  In the table view, it seems everything correct. I can't find a setting that allows me to display all other labels and attributes. Thanks.
Also, is it possible to create such a labelled property graph manually in Cytoscape? Please see this graph for example below.
I tried manually creating a graph, but how I can add a name to an edge, and node and edge attributes (if possible)? I can't even manually add a name to an edge?





Spectacle.Si2705.png

Scooter Morris

unread,
Jan 6, 2018, 12:25:33 PM1/6/18
to cytoscape...@googlegroups.com
Hi,
    In the default style, no edge labels are shown.  All you need to do is to go to the Style tab, go to the Edge Styles and the Label property within the Edge Style and select the column that contains the label you want.  Then set up a passthrough mapping from that column to the label.

-- scooter


On 01/06/2018 12:35 AM, Marlon wrote:
Hello, I imported the "tinkerpop-classic.xml", which is graphML file from the TinkerPop gremlin's sample data directory into Cytoscape. However, it doesn't show the labels and attributes on the Edge. How can I show the full labels and attributes in both nodes and edges?

Please see the attached screenshot. 
--
You received this message because you are subscribed to the Google Groups "cytoscape-helpdesk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cytoscape-helpd...@googlegroups.com.
To post to this group, send email to cytoscape...@googlegroups.com.
Visit this group at https://groups.google.com/group/cytoscape-helpdesk.
To view this discussion on the web visit https://groups.google.com/d/msgid/cytoscape-helpdesk/697a375e-098c-4a1f-b15f-3e0e06a8e654%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Marlon

unread,
Jan 6, 2018, 5:24:40 PM1/6/18
to cytoscape...@googlegroups.com
Hi, Scooter:

Yes, now I am able to get the edge name shown on the graph. However, I also want to see all other attributes of the node or the edge to be shown on the graph. Ideally, I want to see integer to represent the node id, and all attributes are shown on the node. The edge is shown the same way. I pasted one example above. 

Now how to go from here (please see attached) to the state I want. I read the documentation, but didn't succeed. Thanks for guidance.



On Saturday, January 6, 2018 at 9:25:33 AM UTC-8, Scooter Morris wrote:
Hi,
    In the default style, no edge labels are shown.  All you need to do is to go to the Style tab, go to the Edge Styles and the Label property within the Edge Style and select the column that contains the label you want.  Then set up a passthrough mapping from that column to the label.

-- scooter

On 01/06/2018 12:35 AM, Marlon wrote:
Hello, I imported the "tinkerpop-classic.xml", which is graphML file from the TinkerPop gremlin's sample data directory into Cytoscape. However, it doesn't show the labels and attributes on the Edge. How can I show the full labels and attributes in both nodes and edges?

Please see the attached screenshot. 
--
You received this message because you are subscribed to the Google Groups "cytoscape-helpdesk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cytoscape-helpdesk+unsub...@googlegroups.com.
y.png

Scooter Morris

unread,
Jan 6, 2018, 5:45:12 PM1/6/18
to cytoscape...@googlegroups.com
You would need to create a new column using the function builder to create a composite string, and then use that column as your passthrough.  Currently, the visual styles only support a single column for the mapping.

-- scooter


On 01/06/2018 02:24 PM, Marlon wrote:
Hi, Scooter:

Yes, now I am able to get the edge name shown on the graph. However, I also want to see all other attributes of the node or edge to be shown. Ideally, I want to see integer to represent the node id, and all attributes are shown on the node. The edge is shown the same way. I pasted on example above. 

Now how to go from here (please see attached) to the state I want. I read the documentation, but didn't succeed. Thanks for guidance.



On Saturday, January 6, 2018 at 9:25:33 AM UTC-8, Scooter Morris wrote:
Hi,
    In the default style, no edge labels are shown.  All you need to do is to go to the Style tab, go to the Edge Styles and the Label property within the Edge Style and select the column that contains the label you want.  Then set up a passthrough mapping from that column to the label.

-- scooter

On 01/06/2018 12:35 AM, Marlon wrote:
Hello, I imported the "tinkerpop-classic.xml", which is graphML file from the TinkerPop gremlin's sample data directory into Cytoscape. However, it doesn't show the labels and attributes on the Edge. How can I show the full labels and attributes in both nodes and edges?

Please see the attached screenshot. 
--
You received this message because you are subscribed to the Google Groups "cytoscape-helpdesk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cytoscape-helpdesk+unsub...@googlegroups.com.
To post to this group, send email to cytoscape...@googlegroups.com.
Visit this group at https://groups.google.com/group/cytoscape-helpdesk.
To view this discussion on the web visit https://groups.google.com/d/msgid/cytoscape-helpdesk/697a375e-098c-4a1f-b15f-3e0e06a8e654%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to the Google Groups "cytoscape-helpdesk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cytoscape-helpd...@googlegroups.com.

To post to this group, send email to cytoscape...@googlegroups.com.
Visit this group at https://groups.google.com/group/cytoscape-helpdesk.

Marlon

unread,
Jan 6, 2018, 6:03:29 PM1/6/18
to cytoscape-helpdesk
Hi, Scooter:

Is there a tutorial or example showing how to do this? That seems quite a bit involved to create the desired visualization. Thanks.

Ling

unread,
Jan 31, 2018, 9:10:01 PM1/31/18
to cytoscape...@googlegroups.com
Hi, Scooter:

Could you be a little more specific on how to " the function builder to create a composite string ". Haven't been able to figure it out. Thanks.



On Sat, Jan 6, 2018 at 3:03 PM, Marlon <marl...@gmail.com> wrote:
Hi, Scooter:

Is there a tutorial or example showing how to do this? That seems quite a bit involved to create the desired visualization. Thanks.


On Saturday, January 6, 2018 at 2:45:12 PM UTC-8, Scooter Morris wrote:
You would need to create a new column using the function builder to create a composite string, and then use that column as your passthrough.  Currently, the visual styles only support a single column for the mapping.

-- scooter

On 01/06/2018 02:24 PM, Marlon wrote:
Hi, Scooter:

Yes, now I am able to get the edge name shown on the graph. However, I also want to see all other attributes of the node or edge to be shown. Ideally, I want to see integer to represent the node id, and all attributes are shown on the node. The edge is shown the same way. I pasted on example above. 

Now how to go from here (please see attached) to the state I want. I read the documentation, but didn't succeed. Thanks for guidance.



On Saturday, January 6, 2018 at 9:25:33 AM UTC-8, Scooter Morris wrote:
Hi,
    In the default style, no edge labels are shown.  All you need to do is to go to the Style tab, go to the Edge Styles and the Label property within the Edge Style and select the column that contains the label you want.  Then set up a passthrough mapping from that column to the label.

-- scooter

On 01/06/2018 12:35 AM, Marlon wrote:
Hello, I imported the "tinkerpop-classic.xml", which is graphML file from the TinkerPop gremlin's sample data directory into Cytoscape. However, it doesn't show the labels and attributes on the Edge. How can I show the full labels and attributes in both nodes and edges?

Please see the attached screenshot. 
--
You received this message because you are subscribed to the Google Groups "cytoscape-helpdesk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cytoscape-helpdesk+unsubscribe@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "cytoscape-helpdesk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cytoscape-helpdesk+unsubscribe@googlegroups.com.

To post to this group, send email to cytoscape...@googlegroups.com.
Visit this group at https://groups.google.com/group/cytoscape-helpdesk.


--
You received this message because you are subscribed to a topic in the Google Groups "cytoscape-helpdesk" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cytoscape-helpdesk/lYFo9M29UlE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cytoscape-helpdesk+unsub...@googlegroups.com.
To post to this group, send email to cytoscape-helpdesk@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages