About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
Last updated: Feb 11, 2025
The Web node illustrates the strength of the relationship between values of two or
more symbolic (categorical) fields. The graph uses lines of various widths to indicate connection
strength. You might use a Web node, for example, to explore the relationship between the purchase of
a set of items at an e-commerce site.
Example
stream = modeler.script.stream()
typenode = stream.findByID("id42KW3MSA94B")
node = stream.create("web", "My node")
stream.link(typenode, node)
# "Plot" tab
node.setPropertyValue("to_field", "Drug")
node.setPropertyValue("fields", ["Sex", "BP", "Cholesterol", "Drug"])
node.setPropertyValue("true_flags_only", False)
node.setPropertyValue("line_values", "Absolute")
node.setPropertyValue("strong_links_heavier", True)
# "Options" tab
node.setPropertyValue("max_num_links", 300)
node.setPropertyValue("links_above", 10)
node.setPropertyValue("num_links", "ShowAll")
node.setPropertyValue("discard_links_min", True)
node.setPropertyValue("links_min_records", 5)
node.setPropertyValue("weak_below", 10)
node.setPropertyValue("strong_above", 19)
node.setPropertyValue("link_size_continuous", True)
node.setPropertyValue("web_display", "Circular")
node.run([])
properties |
Data type | Property description |
---|---|---|
|
flag | |
|
list | |
|
field | |
|
list | |
|
flag | |
|
|
|
|
flag | |
|
|
|
|
number | |
|
number | |
|
flag | |
|
number | |
|
flag | |
|
number | |
|
number | |
|
number | |
|
flag | |
|
|
|
|
color | Standard graph colors are described at the beginning of this section. |
|
number | Specifies a symbol size. |
|
|
Specify a threshold type. |
|
boolean | You can specify whether the legend is displayed. For plots with a large number of fields, hiding the legend may improve the appearance of the plot. |
|
boolean | You can include the label text within each node rather than displaying adjacent labels. For plots with a small number of fields, this may result in a more readable chart. |
Was the topic helpful?
0/1000