8000 Network: How to show mutliple edges between two nodes? · Issue #3905 · almende/vis · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Jul 29, 2019. It is now read-only.
This repository was archived by the owner on Jul 29, 2019. It is now read-only.
Network: How to show mutliple edges between two nodes? #3905
Closed
@alanchenchen

Description

@alanchenchen

module:Network

version: 4.21.0

os: win10 x64

browser: chrome 64.0.3282.119

Hi! I found a problem that when there are more than one edge between two nodes,the latter one edge would override the former one.
I wanna it to show the total edges but it always show one. Here are my options codes below:

const options = {
                interaction: {
                    hover: true,
                    hoverConnectedEdges: false
                },
                edges: {
                    smooth: {
                        enabled: false
                    },
                    selfReferenceSize: 20,
                },
                nodes: {
                    size: 16
                },
                physics: {
                    enabled: false,
                }
            }

Well,i try to resolve this problem with a kind of option and it works. Like this:

const options = {
                interaction: {
                    hover: true,
                    hoverConnectedEdges: false
                },
                edges: {
                    smooth: {
                        enabled: true,
                        type: 'dynamic'
                    },
                    selfReferenceSize: 20,
                },
                nodes: {
                    size: 16
                },
                physics: {
                    enabled: true,
                }
            }

It only works if i enabled the smooth mode and physics mode.However it's not suitable for my program.
So how can i show multiple edges between two nodes without enableing smooth mode and physics mode?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0