How to know how many nodes I use in a knime workflow

Hi,

My boss asked me how many nodes are there in my knime workflow…

How can I get this number instead of counting…( hundreds of nodes)

1 Like

Hi @Jocelyn,

You can upload the workflow to your NodePit Space and then you can see how many and what nodes and plugins you have used.

Every user has a private and a public NodePit Space.

Here is an example which is one of my workflows in my public NodePit Space:
https://nodepit.com/workflow/com.nodepit.space%2Farmingrudd%2Fpublic%2FCV_Builder.knwf

:blush:

5 Likes

HI @Jocelyn

Another possibility is to add the Timer Info node to the end of your flow.

gr. Hans

4 Likes

If you’re on macOS or Linux (? or Windows ?) you could also use the find command in a shell like:

algebraic:knime-workspace loki$ find 01_Feature_Elimination_Done_Manually -type d -name "*(#*)" | wc -l
      84
algebraic:knime-workspace loki$ 
2 Likes

Hi @quaeler,

Is it possible to count the nodes inside Metanodes using your method?

I was thinking one can select all nodes in the workflow (Ctrl + a) then press “Delete” on keyboard and the warning message will tell us how many nodes we are going to delete. But this method does not count the nodes inside the Metanodes.

:blush:

It counts the metanode as 1, plus all of the nodes inside the metanode. In the example above, there is a metanode called ‘Data Generation’ and if we remove the pipe to wc -l to see what it is counting, that portion of it looks like:

algebraic:knime-workspace loki$ find 01_Feature_Elimination_Done_Manually -type d -name "*(#*)" 
01_Feature_Elimination_Done_Manually/Feature Selection Loop End (#65)
01_Feature_Elimination_Done_Manually/Data Generat (#58)
01_Feature_Elimination_Done_Manually/Data Generat (#58)/Loop End _Column Append_ (#25)
01_Feature_Elimination_Done_Manually/Data Generat (#58)/Empty Table Creator (#11)
01_Feature_Elimination_Done_Manually/Data Generat (#58)/Random Label Assigner (#12)
01_Feature_Elimination_Done_Manually/Data Generat (#58)/Joiner (#26)
01_Feature_Elimination_Done_Manually/Data Generat (#58)/Gaussian Distributed Assigner (#18)
01_Feature_Elimination_Done_Manually/Data Generat (#58)/Color Manager (#15)
01_Feature_Elimination_Done_Manually/Data Generat (#58)/Random Number Assigner (#24)
01_Feature_Elimination_Done_Manually/Data Generat (#58)/Gaussian Distributed Assigner (#13)
01_Feature_Elimination_Done_Manually/Data Generat (#58)/Counting Loop Start (#23)
01_Feature_Elimination_Done_Manually/Data Generat (#58)/Gaussian Distributed Assigner (#17)
01_Feature_Elimination_Done_Manually/Data Generat (#58)/Scatter Matrix (#16)
01_Feature_Elimination_Done_Manually/Data Generat (#58)/Gaussian Distributed Assigner (#14)
01_Feature_Elimination_Done_Manually/Column Filter (#15)
...
algebraic:knime-workspace loki$ 
4 Likes

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.