Skip to content

Predicate function CHILDCOUNT() always returns 0 #34

Description

@markhm

As described here:
https://sourceforge.net/p/prefuse/discussion/343012/thread/11121b8a/

Problem still exists, confirmed today.

Activity

  1. markhm commented on Jul 1, 2018

    @markhm
    Author

    It seems there is a bit more nuance to this.

    The CHILDCOUNT() and TREEDEPTH() functions work when used a in regular Predicate (e.g. to color nodes, see below), but nót to add an extra data column, e.g. like this:

    tree.addColumn("label_child_count", "CONCAT(name,' (',CHILDCOUNT(),')')");.
    

    Working example: https://i.imgur.com/8savFgU.png

  2. alex-rind commented on Jul 2, 2019

    @alex-rind
    Contributor

    That's indeed quite nuanced.

    The tree functions work with addColumn on a VisualTree:

    VisualTupleSet vt = m_vis.add(tree, t);
    vt.addColumn("label_child_count", "CONCAT([name],' (',TREEDEPTH(),')')");

    Alternatively, it would be necessary to change some code in prefuse's Graph class (cp. commit 889ad9e).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions