do the filtering of relationship types in c# instead of d3