File:Red black tree graphviz example.svg

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Original file (SVG file, nominally 883 × 429 pixels, file size: 13 KB)

Captions

Captions

Add a one-line explanation of what this file represents

Summary

[edit]
Description
English: Graphviz version of Red-black tree example.svg (Inkscape, 66968 bytes).
Date
Source Own work
Author IkamusumeFan
SVG development
InfoField
 
The SVG code is valid.
 
This chart was created with Graphviz.
 
 This file uses embedded text that can be easily translated using a text editor.
Source code
InfoField

DOT Source code

// Red Black Tree Example

digraph G {
	graph [ratio=.48];
	node [style=filled, color=black, shape=circle, width=.6 
		fontname=Helvetica, fontweight=bold, fontcolor=white, 
		fontsize=24, fixedsize=true];
	{rank = same; n1; 6; n4; n5; n6; n7; 22; 27};
	
	6, 8, 17, 22, 27
	[fillcolor=red];
	
	n1, n2, n3, n4, n5, n6, n7, n8, n9, n10, n11
	[label="NIL", shape=record, width=.4,height=.25, fontsize=16];
	
	13 -> 8, 17;
	8 -> 1 [weight=6]; 
	8 -> 11 [weight=5];
	17 -> 15 [weight=4]; 
	17 -> 25 [weight=5];
	1 -> n1 [weight=7]; 
	1 -> 6;
	11 -> n4 [weight=10]; 
	11 -> n5 [weight=14];
	6 -> n2, n3;
	15 -> n6 [weight=14]; 
	15 -> n7 [weight=10];
	25 -> 22; 
	25 -> 27 [weight=6];
	22 -> n8 [weight=5]; 
	22 -> n9 [weight=3];
	27 -> n10 [weight=3];
	27 -> n11 [weight=5];
}

Licensing

[edit]
I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current14:42, 9 August 2015Thumbnail for version as of 14:42, 9 August 2015883 × 429 (13 KB)IkamusumeFan (talk | contribs)User created page with UploadWizard

The following page uses this file:

File usage on other wikis

The following other wikis use this file:

Metadata