Troubles with arangodb graph viewer - graph

In graph viewer, is it possible to not start with a random vertice? When I uncheck the option, the graph simply disappears. But I don't get to choose the starting point anywhere.
And when I set up the configuration it is not saved to the graph view. Is this going to be fixed? I find it kind of a key feature for a graph-database to be able to easily explore the graph.
I am working with arrangodb 2.3.1
Anyway, besides some trouble with the graph viewer, I really enjoy this fancy multi model database! And for me it is a big plus it's made in Germany! Keep on the great work arangodb-team!

As already mentioned in the comments you can select the start vertex later.
Click on the Filter icon (see image)
Two input boxes should appear - Attribute name and Attribute value. Type in _key into the left box (see image)
Type in a known _key of a vertex (or another attribute) into the right box (see image)
Simply hit return and you should see the vertex with the given _key value

Related

Java FX - Dividing a Node for multiple page printout

I been searching for post about multiple page printout on javafx. they say that for a node that is too big to fit on one page must be divided and pass each for printjob. the instruction given for that is too vague for me to understand.
Let say i have a TextArea with a list of hundreds of names which obviously would not fit in one page. How will i divide that into a multiple of nodes to pass each on the print method of PrintJob? (output to be printed on a letter size paper)
I have to admit that I have never done that myself but what I would try is the following: Assume you have a node which would cover two pages when printed as a whole. I would then set a clipping rectange on the top level node which covers the left page and then print it. After that I would set a new clipping rectangle wich covers the second page and transform the node so that the second page starts in the uppder left corner and then again print it. I think this could work but as I said before I have never done that before.

Getting extra relationships in the Neo4j query

I am new to Neo4j.
For a given node (say, node 'n'), I am trying to find all other nodes in the graph that are in some way dependent on it. In other words, find nodes in graph who have edges directed towards node 'n'. I am getting correct nodes(lets call them c,d,e) using the following query:
MATCH (depNode)-[r]->(n:AttributeNode)
WHERE n.name='testnode'
RETURN depNode
In the original graph, the nodes c and d are connected as well using a relationship. In the result of the above query, I am also receiving that relationship (edge between c and d). How do I get rid of that edge in my output?
If I get your question correctly, I think you're already getting the correct answer in tabular form but in the visualization form Neo4j shows the "extra edges". You should check out the tabular form and confirm whether it's correctly showing the desired output or not (which it would be).
What's happening here is the default way how the Neo4j browser works. Whenever you try to retrieve some nodes, it shows all the relationships between the nodes as well. If you want to just visualize the nodes, you cannot do that in the current version of the Neo4j browser. You will have to use visualization tools like Gephi on your database and filter your results accordingly.
As of Neo4j 2.2.0.RC1 you can disable the extra relationships being used by setting Autocomplete to Off. The toggle appears at the bottom-right of your result graph and seems to be remembered for future requests.

Can't seem to find how to create a fact table

I'm trying to design a cube with iccube and following the walkthrough, I can't seem to be able.
In the walkthrough (http://www.iccube.com/support/documentation/user_guide/walkthrough/walkthrough.html) when creating a dimension, there is in the picture the "Is fact indexing" option available. But, when I' trying to create a multidimensional dimension, with any table, the option is never shown. The one I have are:
Name*
Table*
Unknown member
Time dimension
Default time dimension
Is indexing by range
So, when I get to add the cube, it only has the calc measure section.
Thanks!
Nicolas, the option 'Is Fact Indexing' is no more available that way. To reply to your question, once you've created a cube, you need to add some Facts (see the icon on the right side when hovering over the newly created cube). Those facts are also called 'Measure Group'. A cube can have one or more 'Measure Group'; each group being attached to a table.

3-state "expanded", "collapsed" and "semi-expanded" tree control

What I'm trying to do is have a 3 state tree expansion.
I have three different icons for "expand" "collapse" "semi-expanded" which I want to use to show a partially populated tree control with all nodes initialized to semi-expanded state and then on clicking the "semi-expanded" icon it gets data from server and populates the tree and open that branch with "expanded" icon.
I tried looking for it but couldn't find anything close to it except the 3-state checkbox but don't know how to use it on 3 state icon when tree would only maintain 2 states.
Thanks in advance.
I think what you are looking for is called a lazy-loading tree. There are lots of examples your can google for, but here is a great example.
As far as the visual part of your request goes (3 different icons to show that state of the branch or node) - you could easily handle that with a custom renderer, by looking at a flag on the node for it's load status.
Does that help?
A 3-State tree control is a bit uncommon and might therefore be a bit confusing; consider that even simple 3-state checkboxes are relatively rare and users may not be accustomed to them. Maybe that's why you didn't find such a tree control.
Thus, maybe you should consider using an alternate design that doesn't require 3-state controls.
For example, the node could start in collapsed node. If the user expands it, and there is no data yet, show a single sub node with the text "retrieving data..." (and a progress wheel or other progress indicator, if you can) and start data retrieval. When the data arrives, replace this sub node with the actual data.

Create editable shapes in Flex/Flash AS3?

I need to build a room designer, ultimately in Flex (Flash Builder 4). The part I am having trouble with is creating the room outline AND allowing the user to add/remove/move points to edit the room's shape. See this application for what I mean:
http://www.deltaportercable.com/shopdesigner/
I know how to create a normal Rect, but not one with editable points, much less how to add a point where the user clicks. Can anyone please point me in the right direction?
I think the key thing here is to try using POINTS instead RECTANGLES, then draw lines to connect these points to display any arbitrary shape that the user is editing.
Maybe use an array to record the initial positions of all four points, then based on the user input, update these points, and update your line drawing and how you connect them.
Start off by looking at Object Handles, which is a pretty good project for adding the edit points.

Resources