Skip to content

Commit 138ce4a

Browse files
committed
rewrite switch intro
1 parent 18b1568 commit 138ce4a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

libs/librrgraph/src/base/rr_graph_view.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@
2727
* 5. A short (metal connection).
2828
*
2929
*
30-
* @note All switch-related information (e.g., resistance R and capacitance C) is stored in
31-
* `rr_switch_inf`, not directly in the edge-related data of RRGraph.
30+
* @note Despite the RRGraph containing millions of edges, there are only a few switch types. Therefore, all switch details, including R and C, are stored using a flyweight pattern (rr_switch_inf) rather than being directly embedded in the edge-related data of the RRGraph. Each edge stores the ID of its associated switch for easy lookup.
3231
*
3332
*
3433
* \internal

0 commit comments

Comments
 (0)