I am trying to create a react flow where you have 2 nodes with multipule edges. I have the following set up but it renders only 1 edge. How do I render all 3 edges?
import ReactFlow from 'reactflow';
import 'reactflow/dist/style.css';
function MyFlow() {
const initialNodes = [
{ id: '1', position: { x: 0, y: 0 }, data: { label: 'Node 1' } },
{ id: '2', position: { x: 200, y: 100 }, data: { label: 'Node 2' } },
];
const initialEdges = [
{ id: 'e1-2a', source: '1', target: '2', label: 'Edge A' },
{ id: 'e1-2b', source: '1', target: '2', label: 'Edge B' },
{ id: 'e1-2c', source: '1', target: '2', label: 'Edge C' },
];
return (
<div style={{ width: '100vw', height: '100vh' }}>
<ReactFlow nodes={initialNodes} edges={initialEdges} fitView />
</div>
);
}
export default MyFlow;
