GML 渲染不正确,其中多个节点具有相同的标签但 id 值不同

问题描述 投票:0回答:1

Cytoscape 版本:3.9.1

操作系统:Mac_OS_X_10.16

Java版本:11.0.6

GML 代码

graph [
 node [
  id 8026
  label "DB00094"
  graphics [
   fill "#a6cee3"
  ]
 ]
 node [
  id 8027
  label "A"
  graphics [
   fill "#b2df8a"
  ]
 ]
 node [
  id 8028
  label "B"
  graphics [
   fill "#b2df8a"
  ]
 ]
 node [
  id 8029
  label "A"
  graphics [
   fill "#b2df8a"
  ]
 ]
 node [
  id 8030
  label "A"
  graphics [
   fill "#b2df8a"
  ]
 ]
 edge [
  label "label"
  source 8026
  target 8027
  graphics [
   type "line"
   arrow "last"
  ]
 ]
 edge [
  label "synonyms"
  source 8026
  target 8028
  graphics [
   type "line"
   arrow "last"
  ]
 ]
 edge [
  label "synonyms"
  source 8026
  target 8029
  graphics [
   type "line"
   arrow "last"
  ]
 ]
 edge [
  label "description"
  source 8026
  target 8030
  graphics [
   type "line"
   arrow "last"
  ]
 ]
]

描述具有相同标签(“A”)但不同 id 值的三个节点的图;这三个节点是三个不同边的目标,其源是同一个节点。 Cytoscape 似乎忽略了带有标签“A”的三个节点是不同的,并将三个边指向带有标签“A”的一个目标节点,同时将其他两个节点隔离 - 参见下图:

其他图形工具可以正确渲染 GML 文件:

我对 Cytoscape 做错了什么吗?

graph cytoscape gml
1个回答
1
投票

不——这是我们读取源和目标属性的方式中的一个错误。我们(错误地)假设标签是唯一的。我建议发布一个错误,我们将在下一个版本中修复它。

© www.soinside.com 2019 - 2024. All rights reserved.