Skip to main content
0 votes
0 answers
34 views

Create custom Pivot table with tree structure

I created a pivot table like the one in the image. The data part was done this way The pivot representation works for me because for each product, line, or family (iPad->iPad Air->iPad Model), ...
Peter Vogric's user avatar
2 votes
1 answer
98 views

Display game variation tree using compact vertical layout

I want to create a multi-line string that can be printed out or displayed via curses. This string displays the moves and variations of a go/weiqi/baduk game from an sgf file using unicode characters. ...
Ali Kakakhel's user avatar
0 votes
1 answer
62 views

How can I compare a tree with different node types to a list of courses to see which courses have been completed and which haven't?

I'm working on a transcript analyzer personal project and I'm having an issue comparing the courses that are read in from the transcript with the required corses. The required courses are stored in a ...
Ian Millican's user avatar
-2 votes
1 answer
67 views

Treelib does not show hierarchical tree node data [closed]

Using tree package treelib in Python I define a small tree that is slightly modified from the description for command show: from treelib import Tree tree = Tree() tree.create_node("Root", &...
granular_bastard's user avatar
0 votes
0 answers
39 views

Tree (closure table) does not save children relations to _closure table

I have the following entity: @Tree('closure-table') @Entity() @Unique(['target', 'slug']) export class SupportNodeEntity extends TreeNodeEntity { @Column({ type: 'enum', enum: SupportNodeVisibility, ...
Korer's user avatar
  • 367
0 votes
4 answers
563 views

Answer sum of values on tree path, with updates, efficiently

You are given an unweighted tree with N nodes and each node starts with value 0. There will be Q queries. The 1st type of query will change the value at a node to a new value. The 2nd type of query ...
Isabella's user avatar
1 vote
1 answer
139 views

LeetCode 199. Binary Tree Right Side View constant memory complexity

I'm trying to solve LeetCode 199. Given the root of a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from top to bottom. I've ...
Benny's user avatar
  • 519
2 votes
1 answer
159 views

How to ensure correct destructing of a non-regular tree?

I need a function that parses a string to create a non-regular tree and returns a pointer to its root. In the case of a parsing error, an exception is thrown. My current attempt leaks memory. How to ...
yoan's user avatar
  • 45
0 votes
0 answers
44 views

Ant Design Tree keeps scrolling with the mouse pointer even after releasing the mouse (during DnD), and also when the pointer is outside the tree

Description: I'm using the Ant Design Tree component with drag-and-drop enabled. During drag, the tree auto-scrolls based on the mouse position — which is expected. However, it keeps scrolling even ...
Rajath's user avatar
  • 3,008
2 votes
2 answers
138 views

How to make a tree support dark/light mode?

All the pages I have been able to add support for dark/light mode. One page has a tree and everything I tried failed and most changes made the formatting (text, alignment, etc.) change, for the worse. ...
Mark's user avatar
  • 123
0 votes
0 answers
67 views

How to construct an AVL tree from a set of keys: 10, 20, 5, 4, 3, 2, 30, 40?

I'm trying to understand how an AVL tree is built from a sequence of integer keys. The keys I have are: 10, 20, 5, 4, 3, 2, 30, 40 I want to construct the AVL tree step by step and see how rotations ...
shakir Sumon's user avatar
2 votes
1 answer
115 views

Get matrix of branch actual length to species tips

Based on this example I have a phylogenetic with species at the tip and branch lengths (that are not necessarily 1). My goal is to calculate phylogenetic diversity multiplying a species community ...
M. Beausoleil's user avatar
0 votes
1 answer
40 views

Click Events of JSX Elements rendered programatically in the dom not setting state right

This is a weird one but I'm a major novice when it comes to React, I'm probably just doing this completely wrong but I'm trying to dynamically render a content tree. It starts with a single node and ...
Erica Stockwell-Alpert's user avatar
-2 votes
1 answer
132 views

Constrained MST: Find a spanning tree of weight ≤ T that minimizes the number of red edges

We are given an undirected graph ( G = (V, E) ), where: ( V ) is the set of vertices (or nodes), ( E ) is the set of edges. Each edge ( e ∈ E ) has two attributes: A weight ( w(e) ), which is a ...
Ikshvaku's user avatar
  • 103
1 vote
1 answer
137 views

Phylogenetic Tree with ggtree - Outgroup branch display

I am struggling with a R script I made to visualize a phylogenetic tree obtained after aligning (mafft), curating (bmge) and tree inference using FastTree and a GTR model. My problem is how the ...
Edouard94's user avatar

15 30 50 per page
1
2 3 4 5
1119