cytoscape: Dagre-layout prevent nodes from laying on edges - css

I am using cytoscapejs with dagre layout (https://github.com/cytoscape/cytoscape.js-dagre). I am very happy with this extension, however, there is one problem I am struggling with. In particular, I would like to prevent that nodes are allowed to lay over edges. Because of that, there are some examples where one cannot distinguish between an edge from a node to a successor and an edge from the successor of the particular node to the succeeding node. There is also an open issue regarding this misbehavior (https://github.com/cytoscape/cytoscape.js/issues/1078)
I allready tried out other curve-style layouts such as 'segments' and 'haystack' but unfortunately without success.
Does anyone of you have an idea how to do that?
Thanks in advance
Andy

You'd have to convert the points that Dagre gives you into segment values. You could put those values in .scratch() to be used in a mapper.
See https://github.com/cytoscape/cytoscape.js-dagre/issues/5
There are a lot of things in the queue for Cytoscape and the extensions, but unfortunately time and resources are constrained and this feature request is relatively low priority. You're welcome to make a pull request on the extension if you'd like to use the feature.
Thanks

Related

Need to outline several contiguous areas on map

I am working with maps that are based upon the lot and block survey system. So, for example, my house could be a parcel identified by block 34, lot 2. For every block, there are usually multiple lots and they are all within the same contiguous area. My users can query for block and lot, and the map will zoom in and display that exact block/lot and outline it. What they want to do is to show all lots for a specified block and draw an outline around the entire block.
I can use the JavaScript API and QueryTask execute() method to get all of the lots/features for a block. However, I do not know if there is a way to aggregate the feature data such that I can calculate and draw a border surrounding them all.
I have tried the executeForExtent() method and it works, but the extent, of course, is a rectangle, which means that while the outline will encompass all of the lots, the edges will have partials of other blocks and lots.
I know it's possible because I have seen it, but I do not have access to that code or the folks who developed it.
Does anybody know of a way to create an outline such as the one I'm describing?
TIA
I think you're looking for a way to calculate a convex hull which you can do with the geometry engine in the ArcGIS API for JavaScript. See https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#convexHull
Update: or maybe better the union method as suggested by #cabesuon in a comment below. Same basic principle - use the GeometryEngine :)

Farewell neo4j webadmin

Is there a specific reason that webadmin was deprecated and then finally removed in 2.3.0? Was its presence impeding something?
I'm used to using the webadmin visualisation to browse around nodes and relationships. This is not working in the browser visualisation as nodes are displayed without a hint of its relationships. Only if another neighbouring node is display, does the relationship between them get displayed. (See attached screenshots) So, is there a way to casually browse around the nodes, just to see what's there? (I used to be able to just enter a single node ID and start browsing.)
(Bonus question) Can you please bring webadmin back, just for a little while longer? Its loss gives me yet another learning curve I really don't need right now.
Webadmin has been deprecated in Neo4j 2.3.0, but is still available. There is a banner that appears first with a message about the deprecation, but once that is closed webadmin is still there.
Webadmin will only be removed when it has been obviated by the capabilities of Neo4j Browser. For that, I appreciate the feedback about the aspects of webadmin which you find valuable. We'll take that into account as we work to improve Neo4j Browser.
Best,
Andreas
The webadmin endpoint has been inadvertently removed in 2.3RC1, this also cause that you can not get the schema back when issuing the :schema command, check here :
https://github.com/neo4j/neo4j/issues/5665
This has been fixed in 2.3.0GA

Library or advise on plotting box nodes interactively

I'm building an application that parses text files that contain information about specific nodes with incoming ports and outgoing ports that are interconnected. Doing some research there are some libraries but none of them support the exact characteristics needed.
this is what I'm trying to build and any language will do: Python, Perl, .net, etc.
One of the libraries I have found is GoDiagaram Node Classes
http://www.nwoods.com/components/dotnet/features-nodes.htm
The idea is to have boxes like so, interconnected and I should be able to click on one of them and link it to a new sub-diagram with more boxes contained in the one clicked.
Is there a counter part of these kind of charts that is opensource? and do these diagrams have a specific kind of name?
I don't know any specific details, since I never looked into this too closely, but here are some potential directions:
The data structure used for representing something like this is usually a graph (probably a directed graph). You could also try searching for graphical (or visual) programming languages. I seem to remember Pure Data as one that was relevant, but I never looked at it in detail.
Blender and VirtualDub both have a mode that's similar to this (the node editor and audio filters, respectively) and I believe both are open source, although I think neither has the option of having the nodes contain other nodes internally.
You could just use LabVIEW, which gives you the ability to create and edit LV code programmatically (search for "VI scripting"), but the code for that might not be very pretty and it's certainly not open source.

How to make correct PathFinding for large size entity in cryengine?

I have been confused by the pathfinding problem for a few days, it seems that the space between generated path and forbidden area are constant. I am really dry, and did not find anything relating to my question on official documentation.
I have tried to modify "pathfindProperties.xml", there is no difference when switching different "Type"
Scale up the radius of collider
is there anybody can give me a help? I really appreciate it!
{A screenshot of my question: http://www.crydev.net/download/file.php?id=86461}
After investigating the problem, I found a solution:
To use the Multi-layer navigation mesh, rather than the default navigation system. And define a proper volume for actor via "NavigationType" property.

Dynamically creating a force directed graph with weighting

I can't find any way to draw a force directed graph where the weighting of the edges affects their length.
Although the Neato layout engine for .Dot format claims to do this, it never seems to actually respond to the edge weight that I give to it.
Ideally, I'd like to do this in Javascript. I've been using the Javascript Infovis Toolkit, but this doesn't seem to have any means for setting a weighting.
Any suggestions gratefully received!
So infovis doesn't solve this problem at all well, and I can't see what's going on with gvis either. However, I have solved this problem using cytoscape.
Although I haven't used it, cytoscape does have a command line option, so you could potentially use it to create images dynamically.

Resources