Wolfram Cloud
Resource Object
Example Resource
Clustering Tree
Source Notebook
Clustering Tree
Examples
Example Notebook
Open in Cloud
Download Notebook
Construct and visualize the hierarchical cluster of arbitrary data using the new
C
l
u
s
t
e
r
i
n
g
T
r
e
e
function in Version 11.
Cluster cities based on the proximity to one another:
I
n
[
1
]
:
=
C
l
u
s
t
e
r
i
n
g
T
r
e
e
L
o
n
d
o
n
C
I
T
Y
,
P
a
r
i
s
C
I
T
Y
,
C
h
i
c
a
g
o
C
I
T
Y
,
T
o
k
y
o
C
I
T
Y
,
B
o
s
t
o
n
C
I
T
Y
,
M
o
s
c
o
w
C
I
T
Y
,
S
a
n
D
i
e
g
o
C
I
T
Y
,
B
a
l
t
i
m
o
r
e
C
I
T
Y
O
u
t
[
1
]
=
Obtain a cluster hierarchy from a list of colors:
I
n
[
2
]
:
=
c
o
l
o
r
s
=
R
a
n
d
o
m
C
o
l
o
r
[
1
8
]
O
u
t
[
2
]
=
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
I
n
[
3
]
:
=
C
l
u
s
t
e
r
i
n
g
T
r
e
e
[
c
o
l
o
r
s
,
C
l
u
s
t
e
r
D
i
s
s
i
m
i
l
a
r
i
t
y
F
u
n
c
t
i
o
n
"
C
e
n
t
r
o
i
d
"
]
O
u
t
[
3
]
=
Choose a different
G
r
a
p
h
L
a
y
o
u
t
:
I
n
[
4
]
:
=
C
l
u
s
t
e
r
i
n
g
T
r
e
e
[
R
a
n
d
o
m
C
o
l
o
r
[
4
0
]
,
C
l
u
s
t
e
r
D
i
s
s
i
m
i
l
a
r
i
t
y
F
u
n
c
t
i
o
n
"
C
e
n
t
r
o
i
d
"
,
G
r
a
p
h
L
a
y
o
u
t
"
R
a
d
i
a
l
D
r
a
w
i
n
g
"
]
O
u
t
[
4
]
=
"
"
Source Metadata
Publisher Information
Contributed By:
Wolfram Staff