flowviz
Version:
A framework which provides seamless integration with other phylogenetic tools and frameworks, while allowing workflow scheduling and execution, through the Apache Airflow workflow system.
23 lines (21 loc) • 484 B
JavaScript
import React, { useCallback } from "react";
import ReactFlow, { Background } from "react-flow-renderer";
export default function WorkflowView({ nodes, edges }) {
return (
<div
style={{
height: `500px`,
width: "100%",
}}
>
<ReactFlow
nodes={nodes}
edges={edges}
fitView
attributionPosition="top-right"
>
<Background variant="lines" color="#bbb" gap={20} />
</ReactFlow>
</div>
);
}