felixhayashi / TW5-TiddlyMap

Map drawing and topic visualization for your wiki
http://tiddlymap.org
BSD 2-Clause "Simplified" License
863 stars 132 forks source link

Option to only display nodes having edges matching the edge-type filter #373

Closed adriankelly1 closed 4 years ago

adriankelly1 commented 4 years ago

Hi I have a TW question (not sure if this is the right forum since its not an issue per see) Is it possible to create a view with a filter based only on edge types without a filter for the nodes. Example: I have NodeA and NodeB linked by edgeAB. I create a new view -> Configure View->Edge-type filter: [[edgeAB]]

This doesn't seem to work as intended which I thought might be the view showing NodeA and NodeB linked by edgeAB. Can anyone help?

felixhayashi commented 4 years ago

Hi @adriankelly1

A node filter is always the prerequisite to create a graph. Unfortunately, there is no way to filter nodes based on the edges they have. Edge filters will only influence which edges are displayed...

Nonetheless it is an interesting idea. There could be a checkbox "only display nodes having edges matching the edge-type filter".

I don't think this feature will be implemented anytime soon but I will keep this ticket open as feature request.

ahilliard commented 4 years ago

Hi @adriankelly1 , good feature request! I have worked around it with a node filter to search the 'edges' field for a prefix of the edge type. [search:tmap.edges[ ]] . But that only catches 'outgoing' edges, so you have to set a 'neighborhood' of 1 in order to include incoming links.

felixhayashi commented 4 years ago

I have worked around it with a node filter to search the 'edges' field for a prefix of the edge type. [search:tmap.edges[ ]]

That is one hell of a workaround :laughing: :+1: very creative indeed!

I now added this feature as part of the next release. The user will be able to toggle the filter via a flag.

2020-09-27_02:11:15

felixhayashi commented 4 years ago

Step1

2020-09-27_22:42:49

Step2

2020-09-27_22:43:16

Step3

2020-09-27_22:43:58

felixhayashi commented 4 years ago

if you want to speed up the graph, you should use a more restictive node filter though instead of [all[tiddlers]].