fslaborg / cytoscape.net Goto Github PK
View Code? Open in Web Editor NEW.NET interface for Cytoscape.js written in F#
Home Page: http://fslab.org/Cytoscape.NET/
License: MIT License
.NET interface for Cytoscape.js written in F#
Home Page: http://fslab.org/Cytoscape.NET/
License: MIT License
Topic was ignored
Suggetion was ignored
Currently not possible to find Cytoscape for .NET in github, adding cytoscape label could help
I think consistency over the data viz libs in the stack can have huge benefits. Therefore, I suggest to either re-write this lib to follow the same patterns, or gradually introduce a top-level API.
For example, in Plotly.NET we have something like this:
Chart.Point(x=[...], y = [...])
Internally, there are multiple things happening, as in plotly.js there is no trace named "point". Chart.Point
is a simple top-level API that removes the need for deep plotly.js knowledge.
in Cyjs.NET (or Cytoscape,NET, see #11 ), we could have something like this:
Graph.Tree(...) // creates a graph that uses taxi edges per default
Graph.Circle(...) // creates a graph using circular layout per default
not sure about the types of graphs that make the most sense besides Graph.Tree
though, so i'd love some input
While I get where the name is coming from, Cyjs is not something I would google first when searching for a library that can create Cytoscape(.js) graphs in a .NET programming language. To make the lib more discoverable, I suggest renaming it to Cytoscape.NET - something that worked quite well for Plotly.NET as well.
Hi. I have a ASP.NET 5.0 application that uses Razor Pages and C#. I want to generate a Cytoscape graph in the backend.
It seems to be possible to do this:
public string GraphHTML { get; set; }
public void OnGet()
{
var graph = CyGraph.initEmpty();
graph.AddElement(Elements.node("n1", new FSharpList<CyParam.CyStyleParam>(CyParam.label("TEST 1"), FSharpList<CyParam.CyStyleParam>.Empty)));
graph.AddElement(Elements.node("n2", new FSharpList<CyParam.CyStyleParam>(CyParam.label("TEST 2"), FSharpList<CyParam.CyStyleParam>.Empty)));
graph.AddElement(Elements.edge("e1", "n1", "n2", FSharpList<CyParam.CyStyleParam>.Empty));
GraphHTML = HTML.toCytoHTML(graph);
}
However, I am unable to call withSize() or any other with* methods on the graph. This must be something F# specific that I am not familiar with. Any ideas on how to approach this? Thank you.
just a reminder that CyGraph.withSize
must be reworked to change the doiv container's dimensions,
Topic was ignored
Is there a way to do this or does it always need to load in a browser?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.