miroiu/NodeBasedEditor

Execute a Graph

Closed this issue · 3 comments

MMJM commented

Hi,

I've been looking at your project and it is very interesting. I've been playing around and I can't seem to get anything to Execute. This is the very simple graph I created.

image

Hello,

Sorry for the late response. For some reason i didn't get notified by email.

The graph editor lets you create a graph but can't execute it. I can tell from the image that you created a Function Graph.
Every graph comes with an Input and an Output node. Function graphs have those nodes editable, that means you can drag a connection into the node and a new pin will be created.
Now if you want the graph to execute you must provide the necessary data.

Hit the Compile button and it will generate a new entry in the Actions Menu under the Project category.
image

Create a Text Graph or an Image Graph and spawn the new generated node.
image

Open a text/image file and select the text/image graph you want to use then press Run.
image

The input is taken from the text/image file and sent to the Text/Image Graph and the graph is executed.

I know it's a bit too much to execute a simple graph but the intent of the application was to operate on different file types.

I attached some test graphs

Do you have any additional questions or can i close the issue ?

MMJM commented

Thanks. I missed the reply above. Yes I'm all good now.