0

我使用 Tinkergraph API 保存了一个图表。

文件在这里:https ://pastebin.com/C81rZYa2

我试图使用 yEd 打开文件,但出现以下错误:

    at y.H.A.K.ā(Unknown Source)
    at y.H.H.ā(Unknown Source)
    at y.H.H.ā(Unknown Source)
    at y.H.G.ā(Unknown Source)
    at y.B.A.M.Đ(Unknown Source)
    at y.B.h.č(Unknown Source)
    at y.B.h.ā(Unknown Source)
    at y.B.h.ă(Unknown Source)
    at com.yworks.A.B.Z.ă(Unknown Source)
    at com.yworks.A.B.Z.ā(Unknown Source)
    at com.yworks.A.K.P.ā(Unknown Source)
    at com.yworks.A.K.P.ā(Unknown Source)
    at com.yworks.A.K.G.ā(Unknown Source)
    at com.yworks.A.K.G.ą(Unknown Source)
    at com.yworks.A.K.P$B.Ă(Unknown Source)
    at com.yworks.A.K.P.ā(Unknown Source)
    at com.yworks.A.L.D.ā(Unknown Source)
    at com.yworks.A.L.j.actionPerformed(Unknown Source)
    at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1967)
    at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2308)
    at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:405)
    at java.desktop/javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262)
    at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:279)
    at com.jidesoft.plaf.basic.BasicJideButtonListener.mouseReleased(Unknown Source)
    at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:297)
    at java.desktop/java.awt.Component.processMouseEvent(Component.java:6614)
    at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3342)
    at java.desktop/java.awt.Component.processEvent(Component.java:6379)
    at java.desktop/java.awt.Container.processEvent(Container.java:2263)
    at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:4990)
    at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321)
    at java.desktop/java.awt.Component.dispatchEvent(Component.java:4822)
    at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4919)
    at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4548)
    at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4489)
    at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2307)
    at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2769)
    at java.desktop/java.awt.Component.dispatchEvent(Component.java:4822)
    at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:772)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
    at java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95)
    at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745)
    at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:743)
    at java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
    at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742)
    at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Caused by: java.io.IOException: ParseException, did not find LETTER, EOF or ] but '<'
    at y.H.A.K.ă(Unknown Source)
    ... 55 more

yEd 和 Tinkergraph 之间是否存在版本不匹配?我正在使用 tinkerpop 2.6.0 即以下依赖项:

<dependency>
            <groupId>com.tinkerpop.blueprints</groupId>
            <artifactId>blueprints-core</artifactId>
            <version>2.6.0</version>
        </dependency>
4

1 回答 1

0

我认为您的版本不匹配。Kelvin Lawrence 建议您使用旧版本的 TinkerPop。我想你可能也在使用旧版本的 yEd。

我已经使用 yEd v3.21.1 成功打开了您的文件,没有任何错误。

节点具有以下自定义属性:

  • 参考
  • 标识符
  • 修饰符
  • 文本
  • 类型
  • 父类型

在安装了最新版本的 yEd 之后,您可能还想创建一个自定义节点来公开部分或全部这些属性,否则无法区分节点。

该图似乎还包含两个循环 - 两个链接到自身的节点。

于 2021-08-07T21:40:59.490 回答